Skip to content

Commit

Permalink
chore: add check to ensure styled prop is removed in low-level mode
Browse files Browse the repository at this point in the history
  • Loading branch information
eels committed Oct 28, 2021
1 parent 66d98f4 commit 98babef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/lib/construct.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ describe('lib/construct', () => {
render(createElement(StyleContext.Provider, { value: styles }, ChicComponent));
expect(screen.getByRole('heading')).toBeInTheDocument();
expect(screen.getByRole('heading')).toHaveClass('heading');
expect(screen.getByRole('heading')).not.toHaveAttribute('styled');
});

it('should render a basic component with an array of class names in low-level mode', () => {
Expand All @@ -379,5 +380,6 @@ describe('lib/construct', () => {
render(createElement(StyleContext.Provider, { value: styles }, ChicComponent));
expect(screen.getByRole('heading')).toBeInTheDocument();
expect(screen.getByRole('heading')).toHaveClass('heading hero');
expect(screen.getByRole('heading')).not.toHaveAttribute('styled');
});
});

0 comments on commit 98babef

Please sign in to comment.