From ca93e85361f7c4d2db802278c9dd1376aa70b4ad Mon Sep 17 00:00:00 2001 From: Haroen Viaene Date: Thu, 14 Jan 2021 11:46:52 +0100 Subject: [PATCH] test: add widgetType --- .../__tests__/createMetadataMiddleware.ts | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/src/middlewares/__tests__/createMetadataMiddleware.ts b/src/middlewares/__tests__/createMetadataMiddleware.ts index 36c3e69cee2..55e365a9361 100644 --- a/src/middlewares/__tests__/createMetadataMiddleware.ts +++ b/src/middlewares/__tests__/createMetadataMiddleware.ts @@ -101,13 +101,13 @@ describe('createMetadataMiddleware', () => { await wait(100); expect(document.head).toMatchInlineSnapshot(` - - - -`); + + + + `); expect(JSON.parse(document.head.querySelector('meta')!.content)) .toMatchInlineSnapshot(` @@ -116,30 +116,36 @@ Object { Object { "params": Array [], "type": "ais.searchBox", + "widgetType": "ais.searchBox", }, Object { "params": Array [], "type": "ais.searchBox", + "widgetType": "ais.searchBox", }, Object { "params": Array [ "escapeHTML", ], "type": "ais.hits", + "widgetType": "ais.hits", }, Object { "params": Array [], "type": "ais.index", + "widgetType": "ais.index", }, Object { "params": Array [], "type": "ais.pagination", + "widgetType": "ais.pagination", }, Object { "params": Array [ "searchParameters", ], "type": "ais.configure", + "widgetType": "ais.configure", }, ], }