Resolve test error

This commit is contained in:
shamoon 2024-07-28 14:08:16 -07:00
parent dcfc53b7f2
commit d1c3ea7faa
2 changed files with 16 additions and 2 deletions

View File

@ -13,6 +13,7 @@ import { PermissionsSelectComponent } from '../../permissions-select/permissions
import { EditDialogMode } from '../edit-dialog.component'
import { GroupEditDialogComponent } from './group-edit-dialog.component'
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http'
import { NgxBootstrapIconsModule, allIcons } from 'ngx-bootstrap-icons'
describe('GroupEditDialogComponent', () => {
let component: GroupEditDialogComponent
@ -30,7 +31,13 @@ describe('GroupEditDialogComponent', () => {
PermissionsFormComponent,
PermissionsSelectComponent,
],
imports: [FormsModule, ReactiveFormsModule, NgSelectModule, NgbModule],
imports: [
FormsModule,
ReactiveFormsModule,
NgSelectModule,
NgbModule,
NgxBootstrapIconsModule.pick(allIcons),
],
providers: [
NgbActiveModal,
provideHttpClient(withInterceptorsFromDi()),

View File

@ -20,6 +20,7 @@ import { PermissionsSelectComponent } from '../../permissions-select/permissions
import { EditDialogMode } from '../edit-dialog.component'
import { UserEditDialogComponent } from './user-edit-dialog.component'
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http'
import { NgxBootstrapIconsModule, allIcons } from 'ngx-bootstrap-icons'
describe('UserEditDialogComponent', () => {
let component: UserEditDialogComponent
@ -38,7 +39,13 @@ describe('UserEditDialogComponent', () => {
PermissionsFormComponent,
PermissionsSelectComponent,
],
imports: [FormsModule, ReactiveFormsModule, NgSelectModule, NgbModule],
imports: [
FormsModule,
ReactiveFormsModule,
NgSelectModule,
NgbModule,
NgxBootstrapIconsModule.pick(allIcons),
],
providers: [
NgbActiveModal,
{