From 7125c0aab311a0c633b99e19c64a13a42c5a7c34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Westk=C3=A4mper?= Date: Fri, 16 Aug 2024 08:36:10 +0300 Subject: [PATCH] Add comments --- spec/setup.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/setup.js b/spec/setup.js index 3939e26..ff06a95 100644 --- a/spec/setup.js +++ b/spec/setup.js @@ -15,8 +15,11 @@ global.navigator = window.navigator global.window.nostoReactTest = true afterEach(() => { + // clearing Nosto iframe window handle window.nosto = undefined + // clearing nostojs stub window.nostojs = undefined + // clearing Shopify specific Nosto namespace window.Nosto = undefined document.head.innerHTML = "" document.body.innerHTML = ""