Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hillalex committed Sep 6, 2024
1 parent ce2d3de commit a17351f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 24 deletions.
2 changes: 1 addition & 1 deletion test/components/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ describe("<App />", () => {
await userEvent.click(go);

const biomarkers = await screen.findByText("Detected biomarkers");
expect(biomarkers.nextSibling?.textContent).toBe("ab");
expect(biomarkers.parentNode?.textContent).toBe("Detected biomarkers ab");
});
});
25 changes: 2 additions & 23 deletions test/components/LinePlot.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ describe("<LinePlot />", () => {
.toBeCalledTimes(2));

const plot = Plot as Mock
expect(plot.mock.calls[1][0]).toEqual({
data: [
expect(plot.mock.calls[1][0].data).toEqual([
{
legendgroup: "all",
line: {
Expand Down Expand Up @@ -91,27 +90,7 @@ describe("<LinePlot />", () => {
type: "scatter",
x: [1, 2],
y: [3, 4]
}],
layout: {
legend: {
orientation: "v",
xanchor: "center"
},
paper_bgcolor: "rgba(255,255,255, 0)",
title: "ab ",
xaxis: {
title: {
text: "day"
}
}
},
style: {
height: "500",
minWidth: "400px",
width: "100%"
},
useResizeHandler: true
})
}])
});

test("requests data for given facet variables", async () => {
Expand Down

0 comments on commit a17351f

Please sign in to comment.