mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-01 14:41:32 +00:00
* Revert "AAE-30882 Replace superagent (#11134)"
This reverts commit a347b20f20
.
* AAE-0000 - Fixed lock for cli and adf
This commit is contained in:
@@ -56,16 +56,15 @@ describe('Upload', () => {
|
||||
assert.equal(data.entry.name, 'testFile.txt');
|
||||
});
|
||||
|
||||
it('upload file should get 409 if new name clashes with an existing file in the current parent folder', async () => {
|
||||
it('upload file should get 409 if new name clashes with an existing file in the current parent folder', (done) => {
|
||||
uploadMock.get409CreationFileNewNameClashes();
|
||||
|
||||
const file = createTestFileStream('testFile.txt');
|
||||
try {
|
||||
await uploadApi.uploadFile(file);
|
||||
assert.fail('Expected an error to be thrown');
|
||||
} catch (error) {
|
||||
|
||||
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 () => {
|
||||
|
Reference in New Issue
Block a user