#1181 Show toast message once (#1189)

* #1181 Show toast once

* #1181 fix unit test

* #1181 Fix unit test compilation problem
This commit is contained in:
Maurizio Vitale
2016-12-01 16:28:16 +00:00
committed by Eugenio Romano
parent 294f7c0ec1
commit 3a288c6b1b
4 changed files with 32 additions and 21 deletions

View File

@@ -75,6 +75,11 @@ describe('Test ng2-alfresco-upload FileUploadDialog', () => {
fixture.detectChanges();
});
afterEach(() => {
fixture.destroy();
TestBed.resetTestingModule();
});
it('should render completed upload 1 when an element is added to Observer', () => {
component._uploaderService.updateFileCounterStream(1);
fixture.detectChanges();