diff --git a/src/app/common/uploading-processbar/uploading-processbar.component.spec.ts b/src/app/common/uploading-processbar/uploading-processbar.component.spec.ts index d5719f0e..c38f0b4a 100644 --- a/src/app/common/uploading-processbar/uploading-processbar.component.spec.ts +++ b/src/app/common/uploading-processbar/uploading-processbar.component.spec.ts @@ -1,4 +1,6 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { MatSnackBarModule, MatSnackBarRef, MAT_SNACK_BAR_DATA } from '@angular/material/snack-bar'; +import { UploadServiceService } from './upload-service.service'; import { UploadingProcessbarComponent } from './uploading-processbar.component'; @@ -8,9 +10,16 @@ describe('UploadingProcessbarComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ - declarations: [ UploadingProcessbarComponent ] + declarations: [UploadingProcessbarComponent], + imports:[MatSnackBarModule], + providers: [ + { provide: MAT_SNACK_BAR_DATA, useValue: {} }, + { provide: MatSnackBarRef, useValue: {} }, + { provide: UploadServiceService, useClass: UploadServiceService }, + + ] }) - .compileComponents(); + .compileComponents(); }); beforeEach(() => {