mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
committed by
Eugenio Romano
parent
53d96679ea
commit
e39a2b149b
@@ -43,6 +43,7 @@ describe('UploadService', () => {
|
||||
files: {
|
||||
excluded: ['.DS_Store', 'desktop.ini', '.git', '*.git', '*.SWF'],
|
||||
'match-options': {
|
||||
/* cspell:disable-next-line */
|
||||
nocase: true
|
||||
}
|
||||
}
|
||||
@@ -269,15 +270,15 @@ describe('UploadService', () => {
|
||||
|
||||
let fileFake1 = new FileModel(<File> { name: 'fake-name1', size: 10 });
|
||||
let fileFake2 = new FileModel(<File> { name: 'fake-name2', size: 10 });
|
||||
let filelist = [fileFake1, fileFake2];
|
||||
service.addToQueue(...filelist);
|
||||
let fileList = [fileFake1, fileFake2];
|
||||
service.addToQueue(...fileList);
|
||||
service.uploadFilesInTheQueue(emitter);
|
||||
|
||||
let file = service.getQueue();
|
||||
service.cancelUpload(...file);
|
||||
});
|
||||
|
||||
it('should remove from the queue all the files in the exluded list', () => {
|
||||
it('should remove from the queue all the files in the excluded list', () => {
|
||||
const file1 = new FileModel(new File([''], '.git'));
|
||||
const file2 = new FileModel(new File([''], '.DS_Store'));
|
||||
const file3 = new FileModel(new File([''], 'desktop.ini'));
|
||||
|
Reference in New Issue
Block a user