Skip to content

Commit

Permalink
refactor(fields): add a generic SearchField for gnui translation package
Browse files Browse the repository at this point in the history
also catch the error if the gnui package is not found, to still display values in the list
  • Loading branch information
fgravin committed Sep 18, 2023
1 parent fba0976 commit 3656dc1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions libs/feature/search/src/lib/utils/service/fields.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { lastValueFrom, of } from 'rxjs'
import {
AbstractSearchField,
FullTextSearchField,
GnUiTranslationSearchField,
IsSpatialSearchField,
LicenseSearchField,
OrganizationSearchField,
SimpleSearchField,
TopicSearchField,
} from './fields'
import { TestBed } from '@angular/core/testing'
import { Injector } from '@angular/core'
Expand Down Expand Up @@ -292,7 +292,11 @@ describe('search fields implementations', () => {

describe('TopicSearchField', () => {
beforeEach(() => {
searchField = new TopicSearchField(injector)
searchField = new GnUiTranslationSearchField(
'cl_topic.key',
'asc',
injector
)
})
describe('#getAvailableValues', () => {
let values
Expand Down

0 comments on commit 3656dc1

Please sign in to comment.