mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3162] Setting component - Should be able to render the providers passed as input (#3464)
* Be able to change the available providers values * Add deprecated tag * add default providers * Fix empty OAuth and selected providers Improve the documentation * Fix BPM guard to check SSO condition * Add the oauthConfig again * SSO or Basic otpion auth setting change * fix host settings sso/basic add login documentation * remove test string * fix auth guard test * dispose upload emitter test events * remove space * exclude failing test
This commit is contained in:
committed by
Eugenio Romano
parent
9221d1d0d0
commit
476b5864bf
@@ -86,8 +86,9 @@ describe('UploadService', () => {
|
||||
it('should make XHR done request after the file is added in the queue', (done) => {
|
||||
let emitter = new EventEmitter();
|
||||
|
||||
emitter.subscribe(e => {
|
||||
let emitterDisposable = emitter.subscribe(e => {
|
||||
expect(e.value).toBe('File uploaded');
|
||||
emitterDisposable.unsubscribe();
|
||||
done();
|
||||
});
|
||||
let fileFake = new FileModel(
|
||||
@@ -111,8 +112,9 @@ describe('UploadService', () => {
|
||||
it('should make XHR error request after an error occur', (done) => {
|
||||
let emitter = new EventEmitter();
|
||||
|
||||
emitter.subscribe(e => {
|
||||
let emitterDisposable = emitter.subscribe(e => {
|
||||
expect(e.value).toBe('Error file uploaded');
|
||||
emitterDisposable.unsubscribe();
|
||||
done();
|
||||
});
|
||||
let fileFake = new FileModel(
|
||||
@@ -134,10 +136,12 @@ describe('UploadService', () => {
|
||||
it('should make XHR abort request after the xhr abort is called', (done) => {
|
||||
let emitter = new EventEmitter();
|
||||
|
||||
emitter.subscribe(e => {
|
||||
let emitterDisposable = emitter.subscribe(e => {
|
||||
expect(e.value).toEqual('File aborted');
|
||||
emitterDisposable.unsubscribe();
|
||||
done();
|
||||
});
|
||||
|
||||
let fileFake = new FileModel(<File> { name: 'fake-name', size: 10 });
|
||||
service.addToQueue(fileFake);
|
||||
service.uploadFilesInTheQueue(emitter);
|
||||
@@ -183,8 +187,9 @@ describe('UploadService', () => {
|
||||
it('should use custom root folder ID given to the service', (done) => {
|
||||
let emitter = new EventEmitter();
|
||||
|
||||
emitter.subscribe(e => {
|
||||
let emitterDisposable = emitter.subscribe(e => {
|
||||
expect(e.value).toBe('File uploaded');
|
||||
emitterDisposable.unsubscribe();
|
||||
done();
|
||||
});
|
||||
let filesFake = new FileModel(
|
||||
|
Reference in New Issue
Block a user