mirror of https://github.com/OpenVidu/openvidu.git
29 lines
648 B
TypeScript
29 lines
648 B
TypeScript
![]() |
import { TestBed } from '@angular/core/testing';
|
||
|
import { MatDialog } from '@angular/material/dialog';
|
||
|
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
||
|
|
||
|
import { ActionService } from './action.service';
|
||
|
|
||
|
export class MatDialogMock {
|
||
|
open() {}
|
||
|
close() {}
|
||
|
}
|
||
|
|
||
|
describe('ActionService', () => {
|
||
|
let service: ActionService;
|
||
|
|
||
|
beforeEach(() => {
|
||
|
TestBed.configureTestingModule({
|
||
|
imports: [MatSnackBarModule],
|
||
|
providers: [
|
||
|
{ provide: MatDialog, useClass: MatDialogMock }
|
||
|
]
|
||
|
});
|
||
|
service = TestBed.inject(ActionService);
|
||
|
});
|
||
|
|
||
|
it('should be created', () => {
|
||
|
expect(service).toBeTruthy();
|
||
|
});
|
||
|
});
|