Skip to content

Commit

Permalink
remove test as it requires jsdom 24 to pass
Browse files Browse the repository at this point in the history
  • Loading branch information
jantimon committed Jun 5, 2024
1 parent b1f596b commit 08a567c
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions src/__tests__/to-have-style.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,33 +251,4 @@ describe('.toHaveStyle', () => {
})
})
})

describe('css-features', () => {
test('works with starting-style', () => {
const {container} = render(`
<div class="label">
Hello World
</div>
`)

const style = document.createElement('style')
style.innerHTML = `
@starting-style {
.label {
opacity: 0;
}
}
.label {
opacity: 1;
transition: opacity 0.2s ease-out;
}
`
document.body.appendChild(style)
document.body.appendChild(container)

expect(container.querySelector('.label')).toHaveStyle(`
opacity: 1;
`)
})
})
})

0 comments on commit 08a567c

Please sign in to comment.