From 0da21e6588fd1933e4ff1e3223fc08b5f54b6ef2 Mon Sep 17 00:00:00 2001 From: Simon Walenkamp Hansen Date: Thu, 5 Dec 2024 11:55:22 +0100 Subject: [PATCH] Make tests pass again --- .../builders/search/contentSearchBuilder.unit.test.ts | 2 +- .../builders/search/productSearchBuilder.unit.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/tests/unit-tests/builders/search/contentSearchBuilder.unit.test.ts b/packages/client/tests/unit-tests/builders/search/contentSearchBuilder.unit.test.ts index 266b416..f5103a3 100644 --- a/packages/client/tests/unit-tests/builders/search/contentSearchBuilder.unit.test.ts +++ b/packages/client/tests/unit-tests/builders/search/contentSearchBuilder.unit.test.ts @@ -15,7 +15,7 @@ function baseBuilder() { test('searchHightlighting', () => { const subject: ContentSearchRequest = baseBuilder() .highlighting(h => { - h.enable(false); + h.enabled(false); h.setHighlightable({ displayName: true, dataKeys: ['datakey-1', 'datakey-2'] diff --git a/packages/client/tests/unit-tests/builders/search/productSearchBuilder.unit.test.ts b/packages/client/tests/unit-tests/builders/search/productSearchBuilder.unit.test.ts index 939f8a6..6bf86d0 100644 --- a/packages/client/tests/unit-tests/builders/search/productSearchBuilder.unit.test.ts +++ b/packages/client/tests/unit-tests/builders/search/productSearchBuilder.unit.test.ts @@ -109,7 +109,7 @@ test('resultMustHaveVariantConstraint', () => { test('searchHightlighting', () => { const subject: ProductSearchRequest = baseBuilder() .highlighting(h => { - h.enable(false); + h.enabled(false); h.setHighlightable({ displayName: true, dataKeys: ['datakey-1', 'datakey-2']