added Unit test case dependencies

This commit is contained in:
Rajnikant 2022-05-20 17:23:14 +05:30
parent 23fe8ae9b8
commit 824833e621

View File

@ -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(() => {