Skip to content

Commit

Permalink
fix xarc-react-query tests due to downstream changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jchip committed Apr 19, 2021
1 parent 2d0f1a3 commit bce4445
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/xarc-react-query/test/spec/browser-index.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ describe("reactQueryFeature browser", function () {

const element = await waitFor(() => screen.getByText("test"), { timeout: 500 });

expect(element.innerHTML).contains(`<p>{"msg":"foo","queryKey":["test"]}</p>`);
expect(element.innerHTML).contains(`<p>{"msg":"foo","queryKey":"test"}</p>`);
});

it("should render subapp with react-query when input component does not exist", async () => {
Expand Down
6 changes: 3 additions & 3 deletions packages/xarc-react-query/test/spec/node-index.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ describe("reactQueryFeature node.js", function () {
const str = renderToString(<result.Component />);

expect(str).equals(
`<div>test <p>{&quot;msg&quot;:&quot;foo&quot;,&quot;queryKey&quot;:[&quot;test&quot;]}</p></div>`
`<div>test <p>{&quot;msg&quot;:&quot;foo&quot;,&quot;queryKey&quot;:&quot;test&quot;}</p></div>`
);
});

Expand Down Expand Up @@ -126,7 +126,7 @@ describe("reactQueryFeature node.js", function () {

const element = await waitFor(() => screen.getByText("test"), { timeout: 500 });

expect(element.innerHTML).equal(`test <p>{"msg":"foo","queryKey":["test"]}</p>`);
expect(element.innerHTML).equal(`test <p>{"msg":"foo","queryKey":"test"}</p>`);
});

it("should render subapp with react-query if it fails on fetching data when doing SSR", async () => {
Expand Down Expand Up @@ -173,7 +173,7 @@ describe("reactQueryFeature node.js", function () {

const element = await waitFor(() => screen.getByText("test"), { timeout: 500 });

expect(element.innerHTML).contains(`<p>{"msg":"foo","queryKey":["test"]}</p>`);
expect(element.innerHTML).contains(`<p>{"msg":"foo","queryKey":"test"}</p>`);
});

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

0 comments on commit bce4445

Please sign in to comment.