Skip to content

Commit

Permalink
Add as button back
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrohan committed Oct 4, 2024
1 parent b8d0b9b commit a4ade5a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ describe('toggleStyledComponent', () => {
const TestComponent = toggleStyledComponent('testFeatureFlag', () => styled.div``)
const {container} = render(
<FeatureFlags flags={{testFeatureFlag: true}}>
<TestComponent sx={{color: 'red'}} />
<TestComponent as="button" sx={{color: 'red'}} />
</FeatureFlags>,
)

expect(container.firstChild).toBeInstanceOf(HTMLButtonElement)
expect(container.firstChild).toHaveStyle('color: red')
})

Expand Down

0 comments on commit a4ade5a

Please sign in to comment.