38 lines
1.2 KiB
TypeScript
38 lines
1.2 KiB
TypeScript
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
|
|
import { SelectKeyCylinderComponent } from './select-key-cylinder.component';
|
|
import { HotToastService } from '@ngxpert/hot-toast';
|
|
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
|
|
import { MockHotToastService } from '../../../../../../mocks/services/mock.hottoast.service';
|
|
|
|
describe('SelectKeyCylinderComponent', () => {
|
|
let component: SelectKeyCylinderComponent;
|
|
let fixture: ComponentFixture<SelectKeyCylinderComponent>;
|
|
|
|
const mockHotToastService = {
|
|
info: jest.fn(),
|
|
error: jest.fn(),
|
|
success: jest.fn(),
|
|
}
|
|
|
|
beforeEach(async () => {
|
|
await TestBed.configureTestingModule({
|
|
imports: [SelectKeyCylinderComponent],
|
|
providers: [
|
|
{ provide: HotToastService, useClass: MockHotToastService },
|
|
{ provide: MatDialogRef, useValue: {} },
|
|
{ provide: MAT_DIALOG_DATA, useValue: [] }
|
|
]
|
|
})
|
|
.compileComponents();
|
|
|
|
fixture = TestBed.createComponent(SelectKeyCylinderComponent);
|
|
component = fixture.componentInstance;
|
|
fixture.detectChanges();
|
|
});
|
|
|
|
it('should create', () => {
|
|
expect(component).toBeTruthy();
|
|
});
|
|
});
|