Finilazed file rest api
This commit is contained in:
1 parent
8dcd8cc425
commit
872f841d74
4 files changed
+96
-38
No files matched your search
@@ -83,8 +83,8 @@ Deno.test('DenoKVFileService happy path xxx ', async (t) => {
|
||||
});
|
||||
|
||||
await t.step('Delete File', async () => {
|
||||
await fs.deleteByPath(fileName1);
|
||||
await fs.deleteByPath('404 not found');
|
||||
await fs.deleteById(file1!.id);
|
||||
await fs.deleteById('404 not found');
|
||||
});
|
||||
|
||||
await t.step('List after delete', async () => {
|
||||
@@ -106,7 +106,7 @@ Deno.test('DenoKVFileService happy path xxx ', async (t) => {
|
||||
await t.step('Rename file', async () => {
|
||||
const newPath = 'boris/file2.txt';
|
||||
const ret = await fs.renameById(file2!.id, newPath);
|
||||
assertEquals(ret?.path, newPath);
|
||||
assertEquals(ret!.path, newPath);
|
||||
|
||||
assertEquals(
|
||||
new TextDecoder().decode((await fs.getRawContentByPath(newPath))!),
|
||||
|
||||
Reference in new issue
Block a user