Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
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
Next Next commit
Finish updating tests
  • Loading branch information
adamwathan authored and thecrypticace committed Jan 5, 2024
commit 2433d997164e95b5099c8346ac73766fb2700a25
6 changes: 3 additions & 3 deletions tests/important-boolean.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { run, html, css, defaults } from './util/run'
test('important boolean', () => {
let config = {
important: true,
darkMode: 'class',
darkMode: 'selector',
content: [
{
raw: html`
Expand Down Expand Up @@ -147,10 +147,10 @@ test('important boolean', () => {
text-align: right !important;
}
}
:is(:where([dir='rtl']) .rtl\:active\:text-center:active) {
.rtl\:active\:text-center:active:where([dir='rtl'], [dir='rtl'] *) {
text-align: center !important;
}
:is(:where(.dark) .dark\:focus\:text-left:focus) {
.dark\:focus\:text-left:focus:where(.dark, .dark *) {
text-align: left !important;
}
`)
Expand Down
10 changes: 5 additions & 5 deletions tests/kitchen-sink.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { run, html, css, defaults } from './util/run'

test('it works', () => {
let config = {
darkMode: 'class',
darkMode: 'selector',
content: [
{
raw: html`
Expand Down Expand Up @@ -304,7 +304,7 @@ test('it works', () => {
}
.drop-empty-rules:hover,
.group:hover .apply-group,
:is(:where(.dark) .apply-dark-mode) {
.apply-dark-mode:where(.dark, .dark *) {
font-weight: 700;
}
.apply-with-existing:hover {
Expand Down Expand Up @@ -339,7 +339,7 @@ test('it works', () => {
.apply-order-b {
margin: 1.5rem 1.25rem 1.25rem;
}
:is(:where(.dark) .group:hover .apply-dark-group-example-a) {
.group:hover .apply-dark-group-example-a:where(.dark, .dark *) {
--tw-bg-opacity: 1;
background-color: rgb(34 197 94 / var(--tw-bg-opacity));
}
Expand Down Expand Up @@ -806,12 +806,12 @@ test('it works', () => {
text-align: left;
}
}
:is(:where(.dark) .dark\:custom-util) {
.dark\:custom-util:where(.dark, .dark *) {
background: #abcdef;
}
@media (min-width: 768px) {
@media (prefers-reduced-motion: no-preference) {
:is(:where(.dark) .md\:dark\:motion-safe\:foo\:active\:custom-util:active) {
.md\:dark\:motion-safe\:foo\:active\:custom-util:active:where(.dark, .dark *) {
background: #abcdef !important;
}
}
Expand Down