Skip to content

Commit

Permalink
Merge branch 'implement-fe-mvp' of https://github.com/leowrites/memor…
Browse files Browse the repository at this point in the history
…y-viz into implement-fe-mvp
  • Loading branch information
leowrites committed Nov 6, 2024
2 parents 6b2ae4b + 9bf1ccf commit 011b9b3
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions webstepper/src/__tests__/App.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,12 @@ describe("App", () => {
"code > span:nth-child(2)"
);

expect(firstLineElement).toHaveStyle({
backgroundColor: "rgb(255, 255, 0)",
});
expect(firstLineElement).toHaveClass("code-box__line--highlighted");

const nextButton = screen.getByText("Next");
fireEvent.click(nextButton);

expect(firstLineElement).not.toHaveStyle({
backgroundColor: "rgb(255, 255, 0)",
});
expect(secondLineElement).toHaveStyle({
backgroundColor: "rgb(255, 255, 0)",
});
expect(firstLineElement).not.toHaveClass("code-box__line--highlighted");
expect(secondLineElement).toHaveClass("code-box__line--highlighted");
});
});

0 comments on commit 011b9b3

Please sign in to comment.