Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinMalfait committed Feb 4, 2025
1 parent 0baed46 commit 9cd3d55
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/tailwindcss/src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,10 @@ describe('compiling CSS', () => {
),
).toMatchInlineSnapshot(`
":root, :host {
--spacing-1\\.5: 1.5px;
--spacing-2_5: 2.5px;
--spacing-3\\.5: 3.5px;
--spacing-foo\\/bar: 3rem;
}
.m-1\\.5 {
Expand Down Expand Up @@ -1106,7 +1109,12 @@ describe('Parsing themes values from CSS', () => {
['w-1/2', 'w-75%'],
),
).toMatchInlineSnapshot(`
".w-1\\/2 {
":root, :host {
--width-1\\/2: 75%;
--width-75\\%: 50%;
}
.w-1\\/2 {
width: var(--width-1\\/2);
}
Expand Down

0 comments on commit 9cd3d55

Please sign in to comment.