[MIGRATION] - Migrating to Jest - working but some tests fails

This commit is contained in:
VitoAlbano
2024-11-15 09:24:34 +00:00
committed by Vito Albano
parent 7c6e9ab831
commit 3039d1612f
2 changed files with 11 additions and 12 deletions

View File

@@ -61,12 +61,10 @@ describe('Upload', () => {
const file = createTestFileStream('testFile.txt');
uploadApi.uploadFile(file).catch(
(error: any) => {
assert.equal(error.status, 409);
done();
}
);
uploadApi.uploadFile(file).catch((error: any) => {
assert.equal(error.status, 409);
done();
});
});
it('upload file should get 200 and rename if the new name clashes with an existing file in the current parent folder and autorename is true', async () => {