mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-917] added exlcluded files into app config to prevent special fi… (#2039)
* [ADF 917] added exlcluded files into app config to prevent special files upload
This commit is contained in:
@@ -28,6 +28,9 @@ describe('AppConfigService', () => {
|
||||
'bpmHost': 'http://localhost:4000/ecm',
|
||||
'application': {
|
||||
'name': 'Custom Name'
|
||||
},
|
||||
'files': {
|
||||
'excluded': ['exluded']
|
||||
}
|
||||
};
|
||||
|
||||
@@ -88,4 +91,13 @@ describe('AppConfigService', () => {
|
||||
expect(appConfigService.configFile).toBe(name);
|
||||
});
|
||||
});
|
||||
|
||||
it('should take excluded file list', () => {
|
||||
expect(appConfigService.configFile).toBeNull();
|
||||
|
||||
const name = 'custom.config.json';
|
||||
appConfigService.load(name).then(() => {
|
||||
expect(appConfigService.get('files.excluded')[0]).toBe('exluded');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user