Fix frontend tests icon imports

This commit is contained in:
shamoon
2024-01-19 22:28:32 -08:00
parent f58b8d6967
commit f41ee267dc
42 changed files with 137 additions and 20 deletions

View File

@@ -40,6 +40,7 @@ import { PermissionsGroupComponent } from '../../common/input/permissions/permis
import { PermissionsUserComponent } from '../../common/input/permissions/permissions-user/permissions-user.component'
import { NgSelectModule } from '@ng-select/ng-select'
import { GroupService } from 'src/app/services/rest/group.service'
import { NgxBootstrapIconsModule, allIcons } from 'ngx-bootstrap-icons'
const selectionData: SelectionData = {
selected_tags: [
@@ -153,6 +154,7 @@ describe('BulkEditorComponent', () => {
NgbModule,
NgbModalModule,
NgSelectModule,
NgxBootstrapIconsModule.pick(allIcons),
],
}).compileComponents()

View File

@@ -20,6 +20,7 @@ import { SafeUrlPipe } from 'src/app/pipes/safeurl.pipe'
import { DocumentCardLargeComponent } from './document-card-large.component'
import { IsNumberPipe } from 'src/app/pipes/is-number.pipe'
import { PreviewPopupComponent } from '../../common/preview-popup/preview-popup.component'
import { NgxBootstrapIconsModule, allIcons } from 'ngx-bootstrap-icons'
const doc = {
id: 10,
@@ -60,6 +61,7 @@ describe('DocumentCardLargeComponent', () => {
NgbPopoverModule,
NgbTooltipModule,
NgbProgressbarModule,
NgxBootstrapIconsModule.pick(allIcons),
],
}).compileComponents()

View File

@@ -23,6 +23,7 @@ import { TagComponent } from '../../common/tag/tag.component'
import { Tag } from 'src/app/data/tag'
import { IsNumberPipe } from 'src/app/pipes/is-number.pipe'
import { PreviewPopupComponent } from '../../common/preview-popup/preview-popup.component'
import { NgxBootstrapIconsModule, allIcons } from 'ngx-bootstrap-icons'
const doc = {
id: 10,
@@ -74,6 +75,7 @@ describe('DocumentCardSmallComponent', () => {
NgbPopoverModule,
NgbTooltipModule,
NgbProgressbarModule,
NgxBootstrapIconsModule.pick(allIcons),
],
}).compileComponents()

View File

@@ -63,6 +63,7 @@ import { PermissionsGuard } from 'src/app/guards/permissions.guard'
import { SettingsService } from 'src/app/services/settings.service'
import { SETTINGS_KEYS } from 'src/app/data/ui-settings'
import { IsNumberPipe } from 'src/app/pipes/is-number.pipe'
import { NgxBootstrapIconsModule, allIcons } from 'ngx-bootstrap-icons'
const docs: Document[] = [
{
@@ -146,6 +147,7 @@ describe('DocumentListComponent', () => {
NgbDatepickerModule,
NgbPopoverModule,
NgbTooltipModule,
NgxBootstrapIconsModule.pick(allIcons),
],
}).compileComponents()

View File

@@ -77,6 +77,7 @@ import {
OwnerFilterType,
} from '../../common/permissions-filter-dropdown/permissions-filter-dropdown.component'
import { FilterEditorComponent } from './filter-editor.component'
import { NgxBootstrapIconsModule, allIcons } from 'ngx-bootstrap-icons'
const tags: Tag[] = [
{
@@ -191,6 +192,7 @@ describe('FilterEditorComponent', () => {
FormsModule,
ReactiveFormsModule,
NgbDatepickerModule,
NgxBootstrapIconsModule.pick(allIcons),
],
}).compileComponents()