Resolve/write an unit test case.

This commit is contained in:
Rajnikant Lodhi 2022-07-04 15:03:49 +05:30
parent 576c108da8
commit 9c3667277c
3 changed files with 23 additions and 1 deletions

View File

@ -1,6 +1,6 @@
<div class="row">
<div class="col-md-10">
<h5>Confirm {{ confirmActionData.actionType | titlecase }} All</h5>
<h5 class="heading-txt">Confirm {{ confirmActionData.actionType}} All</h5>
</div>
<div class="col-md-2 txt-align">
<button mat-mini-fab color="warn" class="close-btn" mat-dialog-close>

View File

@ -13,4 +13,7 @@
}
.mat-dialog-actions {
min-height: 31px;
}
.heading-txt{
text-transform: capitalize;
}

View File

@ -1,4 +1,10 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { MatCheckboxModule } from '@angular/material/checkbox';
import { MatDialogModule, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { MatIconModule } from '@angular/material/icon';
import { MatMenuModule } from '@angular/material/menu';
import { MatSnackBarModule } from '@angular/material/snack-bar';
import { MatToolbarModule } from '@angular/material/toolbar';
import { NodesMenuConfirmationDialogComponent } from './nodes-menu-confirmation-dialog.component';
@ -8,6 +14,19 @@ describe('NodesMenuConfirmationDialogComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
imports:[
MatIconModule,
MatToolbarModule,
MatMenuModule,
MatCheckboxModule,
MatDialogModule,
MatSnackBarModule,
],
providers: [
{ provide: MAT_DIALOG_DATA, useValue: {} },
{ provide: MatDialogRef, useValue: {} },
],
declarations: [ NodesMenuConfirmationDialogComponent ]
})
.compileComponents();