Finilazed file rest api

This commit is contained in:
didier amyot committed 2023-06-13 09:49:20 -04:00
1 parent 8dcd8cc425
commit 872f841d74
4 files changed
+96 -38

No files matched your search

+3 -3
View File
@@ -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))!),