mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2024-12-21 13:57:48 +00:00
added Unit test case dependencies
This commit is contained in:
parent
23fe8ae9b8
commit
824833e621
@ -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(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user