From d2da455bbda93c6c29f43574dff910c20dbf8155 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesper=20Engstr=C3=B6m?= Date: Tue, 17 Dec 2024 14:07:05 +0100 Subject: [PATCH] Test fix --- lxl-web/src/lib/utils/getLabelsFromMapping.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lxl-web/src/lib/utils/getLabelsFromMapping.test.ts b/lxl-web/src/lib/utils/getLabelsFromMapping.test.ts index b9da44750..6f04d6929 100644 --- a/lxl-web/src/lib/utils/getLabelsFromMapping.test.ts +++ b/lxl-web/src/lib/utils/getLabelsFromMapping.test.ts @@ -4,13 +4,13 @@ import type { DisplayMapping } from '$lib/types/search'; describe('getLabelsFromMapping', () => { it('it returns labels when supplied with page mappings', () => { - const labels = getLabelsFromMapping('genreForm', 'saogf:Romaner', pageMapping, null); + const labels = getLabelsFromMapping('genreForm', 'saogf:Romaner', pageMapping, undefined); expect(labels.keyLabel).toBe('Genre/form'); expect(labels.valueLabel).toBe('Romaner'); }); it('it returns labels when supplied with suggest mappings', () => { - const labels = getLabelsFromMapping('genreForm', 'saogf:Romaner', null, suggestMapping); + const labels = getLabelsFromMapping('genreForm', 'saogf:Romaner', undefined, suggestMapping); expect(labels.keyLabel).toBe('Genre/form'); expect(labels.valueLabel).toBe('Romaner'); }); @@ -46,12 +46,12 @@ describe('getLabelsFromMapping', () => { }); it('does not return a removelink when using suggest mappings', () => { - const labels = getLabelsFromMapping('genreForm', 'saogf:Romaner', null, suggestMapping); + const labels = getLabelsFromMapping('genreForm', 'saogf:Romaner', undefined, suggestMapping); expect(labels.removeLink).toBe(undefined); }); it('returns a removelink when using page mappings', () => { - const labels = getLabelsFromMapping('genreForm', 'saogf:Romaner', pageMapping, null); + const labels = getLabelsFromMapping('genreForm', 'saogf:Romaner', pageMapping, undefined); expect(labels.removeLink).toBe('/find?_i=sommar&_q=sommar+%C3%85R:2023&_limit=20&_spell=true'); }); });