mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2024-12-29 17:28:51 +00:00
Resolve/write an unit test case.
This commit is contained in:
parent
576c108da8
commit
9c3667277c
@ -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>
|
||||
|
@ -13,4 +13,7 @@
|
||||
}
|
||||
.mat-dialog-actions {
|
||||
min-height: 31px;
|
||||
}
|
||||
.heading-txt{
|
||||
text-transform: capitalize;
|
||||
}
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user