mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-28 13:48:49 +08:00
41 lines
1.3 KiB
TypeScript
41 lines
1.3 KiB
TypeScript
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
import { MAT_DIALOG_DATA, MatDialogModule, MatDialogRef } from '@angular/material';
|
|
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
|
|
|
|
import { MaterialModule } from '../../../core/material/material.module';
|
|
import { ConfirmationDialogComponent } from './confirmation-dialog.component';
|
|
|
|
describe('ConfirmationDialogComponent', () => {
|
|
let component: ConfirmationDialogComponent;
|
|
let fixture: ComponentFixture<ConfirmationDialogComponent>;
|
|
|
|
beforeEach(async(() => {
|
|
TestBed.configureTestingModule({
|
|
declarations: [ ConfirmationDialogComponent ],
|
|
imports: [
|
|
MaterialModule,
|
|
MatDialogModule,
|
|
FormsModule,
|
|
ReactiveFormsModule,
|
|
NoopAnimationsModule
|
|
],
|
|
providers: [
|
|
{ provide: MatDialogRef, useValue: {} },
|
|
{ provide: MAT_DIALOG_DATA, useValue: [] },
|
|
]
|
|
})
|
|
.compileComponents();
|
|
}));
|
|
|
|
beforeEach(() => {
|
|
fixture = TestBed.createComponent(ConfirmationDialogComponent);
|
|
component = fixture.componentInstance;
|
|
fixture.detectChanges();
|
|
});
|
|
|
|
it('should create', () => {
|
|
expect(component).toBeTruthy();
|
|
});
|
|
});
|