mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-01-02 11:06:44 +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 { 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';
|
import { UploadingProcessbarComponent } from './uploading-processbar.component';
|
||||||
|
|
||||||
@ -8,9 +10,16 @@ describe('UploadingProcessbarComponent', () => {
|
|||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await TestBed.configureTestingModule({
|
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(() => {
|
beforeEach(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user