Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thecrypticace committed Nov 22, 2024
1 parent 17ee8ce commit f091683
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
6 changes: 3 additions & 3 deletions packages/tailwindcss/src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -685,9 +685,9 @@ describe('sorting', () => {
gap: var(--spacing-4);
}
:where(.space-x-2 > :not(:last-child)) {
margin-inline-start: calc(var(--spacing-2) * var(--tw-space-x-reverse));
margin-inline-end: calc(var(--spacing-2) * calc(1 - var(--tw-space-x-reverse)));
:where(.space-x-2 > :not(:first-child)) {
margin-inline-start: calc(var(--spacing-2) * calc(1 - var(--tw-space-x-reverse)));
margin-inline-end: calc(var(--spacing-2) * var(--tw-space-x-reverse));
}
@supports (-moz-orient: inline) {
Expand Down
40 changes: 20 additions & 20 deletions packages/tailwindcss/src/utilities.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7865,19 +7865,19 @@ test('space-x', async () => {
--spacing-4: 1rem;
}
:where(.-space-x-4 > :not(:last-child)) {
margin-inline-start: calc(calc(var(--spacing-4) * -1) * var(--tw-space-x-reverse));
margin-inline-end: calc(calc(var(--spacing-4) * -1) * calc(1 - var(--tw-space-x-reverse)));
:where(.-space-x-4 > :not(:first-child)) {
margin-inline-start: calc(calc(var(--spacing-4) * -1) * calc(1 - var(--tw-space-x-reverse)));
margin-inline-end: calc(calc(var(--spacing-4) * -1) * var(--tw-space-x-reverse));
}
:where(.space-x-4 > :not(:last-child)) {
margin-inline-start: calc(var(--spacing-4) * var(--tw-space-x-reverse));
margin-inline-end: calc(var(--spacing-4) * calc(1 - var(--tw-space-x-reverse)));
:where(.space-x-4 > :not(:first-child)) {
margin-inline-start: calc(var(--spacing-4) * calc(1 - var(--tw-space-x-reverse)));
margin-inline-end: calc(var(--spacing-4) * var(--tw-space-x-reverse));
}
:where(.space-x-\\[4px\\] > :not(:last-child)) {
margin-inline-start: calc(4px * var(--tw-space-x-reverse));
margin-inline-end: calc(4px * calc(1 - var(--tw-space-x-reverse)));
:where(.space-x-\\[4px\\] > :not(:first-child)) {
margin-inline-start: calc(4px * calc(1 - var(--tw-space-x-reverse)));
margin-inline-end: calc(4px * var(--tw-space-x-reverse));
}
@supports (-moz-orient: inline) {
Expand Down Expand Up @@ -7913,19 +7913,19 @@ test('space-y', async () => {
--spacing-4: 1rem;
}
:where(.-space-y-4 > :not(:last-child)) {
margin-block-start: calc(calc(var(--spacing-4) * -1) * var(--tw-space-y-reverse));
margin-block-end: calc(calc(var(--spacing-4) * -1) * calc(1 - var(--tw-space-y-reverse)));
:where(.-space-y-4 > :not(:first-child)) {
margin-block-start: calc(calc(var(--spacing-4) * -1) * calc(1 - var(--tw-space-y-reverse)));
margin-block-end: calc(calc(var(--spacing-4) * -1) * var(--tw-space-y-reverse));
}
:where(.space-y-4 > :not(:last-child)) {
margin-block-start: calc(var(--spacing-4) * var(--tw-space-y-reverse));
margin-block-end: calc(var(--spacing-4) * calc(1 - var(--tw-space-y-reverse)));
:where(.space-y-4 > :not(:first-child)) {
margin-block-start: calc(var(--spacing-4) * calc(1 - var(--tw-space-y-reverse)));
margin-block-end: calc(var(--spacing-4) * var(--tw-space-y-reverse));
}
:where(.space-y-\\[4px\\] > :not(:last-child)) {
margin-block-start: calc(4px * var(--tw-space-y-reverse));
margin-block-end: calc(4px * calc(1 - var(--tw-space-y-reverse)));
:where(.space-y-\\[4px\\] > :not(:first-child)) {
margin-block-start: calc(4px * calc(1 - var(--tw-space-y-reverse)));
margin-block-end: calc(4px * var(--tw-space-y-reverse));
}
@supports (-moz-orient: inline) {
Expand All @@ -7947,7 +7947,7 @@ test('space-y', async () => {

test('space-x-reverse', async () => {
expect(await run(['space-x-reverse'])).toMatchInlineSnapshot(`
":where(.space-x-reverse > :not(:last-child)) {
":where(.space-x-reverse > :not(:first-child)) {
--tw-space-x-reverse: 1;
}
Expand All @@ -7970,7 +7970,7 @@ test('space-x-reverse', async () => {

test('space-y-reverse', async () => {
expect(await run(['space-y-reverse'])).toMatchInlineSnapshot(`
":where(.space-y-reverse > :not(:last-child)) {
":where(.space-y-reverse > :not(:first-child)) {
--tw-space-y-reverse: 1;
}
Expand Down

0 comments on commit f091683

Please sign in to comment.