Skip to content

Commit

Permalink
add test to check that aspect-ratio is handled
Browse files Browse the repository at this point in the history
  • Loading branch information
Fullchee committed Feb 18, 2024
1 parent a5a21b7 commit 86f988d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/__tests__/to-have-style.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ describe('.toHaveStyle', () => {
float: left;
transition: opacity 0.2s ease-out, top 0.3s cubic-bezier(1.175, 0.885, 0.32, 1.275);
transform: translateX(0px);
aspect-ratio: 1 / 1;
}
`
document.body.appendChild(style)
Expand Down Expand Up @@ -55,6 +56,10 @@ describe('.toHaveStyle', () => {
expect(container.querySelector('.label')).toHaveStyle(`
transform: translateX(0px);
`)

expect(container.querySelector('.label')).toHaveStyle(`
aspect-ratio: 1 / 1;
`)
})

test('handles negative test cases', () => {
Expand Down

0 comments on commit 86f988d

Please sign in to comment.