From bce44450026f657618014f1d13e49f3ec87c0c78 Mon Sep 17 00:00:00 2001 From: Joel Chen Date: Mon, 19 Apr 2021 10:17:21 -0700 Subject: [PATCH] fix xarc-react-query tests due to downstream changes --- packages/xarc-react-query/test/spec/browser-index.spec.tsx | 2 +- packages/xarc-react-query/test/spec/node-index.spec.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/xarc-react-query/test/spec/browser-index.spec.tsx b/packages/xarc-react-query/test/spec/browser-index.spec.tsx index 578cb06dc..fe1b35f02 100644 --- a/packages/xarc-react-query/test/spec/browser-index.spec.tsx +++ b/packages/xarc-react-query/test/spec/browser-index.spec.tsx @@ -81,7 +81,7 @@ describe("reactQueryFeature browser", function () { const element = await waitFor(() => screen.getByText("test"), { timeout: 500 }); - expect(element.innerHTML).contains(`

{"msg":"foo","queryKey":["test"]}

`); + expect(element.innerHTML).contains(`

{"msg":"foo","queryKey":"test"}

`); }); it("should render subapp with react-query when input component does not exist", async () => { diff --git a/packages/xarc-react-query/test/spec/node-index.spec.tsx b/packages/xarc-react-query/test/spec/node-index.spec.tsx index 0a33ad2e8..1c332a1be 100644 --- a/packages/xarc-react-query/test/spec/node-index.spec.tsx +++ b/packages/xarc-react-query/test/spec/node-index.spec.tsx @@ -79,7 +79,7 @@ describe("reactQueryFeature node.js", function () { const str = renderToString(); expect(str).equals( - `
test

{"msg":"foo","queryKey":["test"]}

` + `
test

{"msg":"foo","queryKey":"test"}

` ); }); @@ -126,7 +126,7 @@ describe("reactQueryFeature node.js", function () { const element = await waitFor(() => screen.getByText("test"), { timeout: 500 }); - expect(element.innerHTML).equal(`test

{"msg":"foo","queryKey":["test"]}

`); + expect(element.innerHTML).equal(`test

{"msg":"foo","queryKey":"test"}

`); }); it("should render subapp with react-query if it fails on fetching data when doing SSR", async () => { @@ -173,7 +173,7 @@ describe("reactQueryFeature node.js", function () { const element = await waitFor(() => screen.getByText("test"), { timeout: 500 }); - expect(element.innerHTML).contains(`

{"msg":"foo","queryKey":["test"]}

`); + expect(element.innerHTML).contains(`

{"msg":"foo","queryKey":"test"}

`); }); it("should render subapp with react-query when input component does not exist", async () => {