Skip to content

Commit

Permalink
Add clarifying comment to test
Browse files Browse the repository at this point in the history
  • Loading branch information
nishasy committed Oct 27, 2023
1 parent 7246e19 commit fa788ec
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,11 @@ describe("Accordion", () => {
const sectionHeader = screen.getByTestId("section-header-test-id");

// Assert
// The parent has animated=true, so the child's animated=false
// should be overridden.
expect(sectionHeader).toHaveStyle({
// The existence of the transition style means that the
// accordion is animated.
transition: "border-radius 300ms",
});
});
Expand Down

0 comments on commit fa788ec

Please sign in to comment.