Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix mistake in test
  • Loading branch information
adamwathan committed May 30, 2023
commit 4b83235a03ebbd5677e4c5174cbb459c116fe22f
11 changes: 4 additions & 7 deletions tests/arbitrary-variants.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ test('has-* variants with arbitrary values', () => {
{
raw: html`
<div>
<figure class="has-[figcaption]:underline"></figure>
<figure class="has-[figcaption]:inline-block"></figure>
<div class="has-[.foo]:flex"></div>
<div class="has-[.foo:hover]:block"></div>
<div class="has-[[data-active]]:inline"></div>
Expand All @@ -800,12 +800,12 @@ test('has-* variants with arbitrary values', () => {

return run(input, config).then((result) => {
expect(result.css).toMatchFormattedCss(css`
.has-\[figcaption\]:has(figcaption) {
text-decoration: underline;
}
.has-\[\.foo\:hover\]\:block:has(.foo:hover) {
display: block;
}
.has-\[figcaption\]\:inline-block:has(figcaption) {
display: inline-block;
}
.has-\[\[data-active\]\]\:inline:has([data-active]) {
display: inline;
}
Expand All @@ -824,9 +824,6 @@ test('has-* variants with arbitrary values', () => {
.has-\[h2\]\:has-\[\.banana\]\:hidden:has(.banana):has(h2) {
display: none;
}
.has-\[figcaption\]\:underline:has(figcaption) {
text-decoration-line: underline;
}
`)
})
})
Expand Down