diff --git a/spec/nosto.load.spec.tsx b/spec/nosto.load.spec.tsx
index d7caebd..6355a4b 100644
--- a/spec/nosto.load.spec.tsx
+++ b/spec/nosto.load.spec.tsx
@@ -4,9 +4,20 @@ import { render } from "@testing-library/react"
import { NostoProvider, NostoHome } from "../src/index"
describe("Nosto client script loading", () => {
- it.todo("is stopped via provider when the script is loaded externally")
+ it("verify Nosto is not loaded twice", () => {
+ // @ts-expect-error dummy placeholder for Nosto iframe window scope
+ window.nosto = {}
- it("is loaded", () => {
+ render(
+
+
+
+ )
+
+ expect(document.querySelector("[nosto-client-script]")).not.toBeInTheDocument()
+ })
+
+ it("is loaded", () => {
render(
diff --git a/spec/nosto.reload.spec.tsx b/spec/nosto.reload.spec.tsx
deleted file mode 100644
index 6812e29..0000000
--- a/spec/nosto.reload.spec.tsx
+++ /dev/null
@@ -1,17 +0,0 @@
-import React from "react"
-import { test, expect } from "vitest"
-import { render } from "@testing-library/react"
-import { NostoProvider, NostoHome } from "../src/index"
-
-test("verify Nosto is not loaded twice", async () => {
- // @ts-expect-error dummy placeholder for Nosto iframe window scope
- window.nosto = {}
-
- render(
-
-
-
- )
-
- expect(document.querySelector("[nosto-client-script]")).not.toBeInTheDocument()
-})