[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:
Vito
2017-07-06 05:29:41 -07:00
committed by Eugenio Romano
parent dac9b21e85
commit b9cfa81829
10 changed files with 86 additions and 27 deletions

View File

@@ -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');
});
});
});