Skip to content

Commit 1e012ff

Browse files
committed
Fix tests
1 parent e70706a commit 1e012ff

File tree

6 files changed

+19
-11
lines changed

6 files changed

+19
-11
lines changed

packages/@tailwindcss-postcss/src/__snapshots__/index.test.ts.snap

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,11 @@ exports[`\`@import 'tailwindcss'\` is replaced with the generated CSS 1`] = `
393393
--line-height-8: 2rem;
394394
--line-height-9: 2.25rem;
395395
--line-height-10: 2.5rem;
396+
--perspective-dramatic: 100px;
397+
--perspective-near: 300px;
398+
--perspective-normal: 500px;
399+
--perspective-midrange: 800px;
400+
--perspective-distant: 1200px;
396401
--transition-timing-function-linear: linear;
397402
--transition-timing-function-in: cubic-bezier(.4, 0, 1, 1);
398403
--transition-timing-function-out: cubic-bezier(0, 0, .2, 1);

packages/tailwindcss/src/__snapshots__/index.test.ts.snap

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,11 @@ exports[`compiling CSS > \`@tailwind utilities\` is replaced by utilities using
392392
--line-height-8: 2rem;
393393
--line-height-9: 2.25rem;
394394
--line-height-10: 2.5rem;
395+
--perspective-dramatic: 100px;
396+
--perspective-near: 300px;
397+
--perspective-normal: 500px;
398+
--perspective-midrange: 800px;
399+
--perspective-distant: 1200px;
395400
--transition-timing-function-linear: linear;
396401
--transition-timing-function-in: cubic-bezier(.4, 0, 1, 1);
397402
--transition-timing-function-out: cubic-bezier(0, 0, .2, 1);

packages/tailwindcss/src/__snapshots__/intellisense.test.ts.snap

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,10 +1163,7 @@ exports[`getClassList 1`] = `
11631163
"pe-1",
11641164
"pe-3",
11651165
"pe-4",
1166-
"perspective-distant",
11671166
"perspective-dramatic",
1168-
"perspective-midrange",
1169-
"perspective-near",
11701167
"perspective-none",
11711168
"perspective-normal",
11721169
"pl-0.5",

packages/tailwindcss/src/intellisense.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ function loadDesignSystem() {
1414
theme.add('--breakpoint-sm', '640px')
1515
theme.add('--font-size-xs', '0.75rem')
1616
theme.add('--font-size-xs--line-height', '1rem')
17+
theme.add('--perspective-dramatic', '100px')
18+
theme.add('--perspective-normal', '500px')
1719
return buildDesignSystem(theme)
1820
}
1921

packages/tailwindcss/src/utilities.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3079,32 +3079,32 @@ test('perspective', () => {
30793079
css`
30803080
@theme {
30813081
--perspective-dramatic: 100px;
3082-
--perspective-distant: 1200px;
3082+
--perspective-normal: 500px;
30833083
}
30843084
@tailwind utilities;
30853085
`,
3086-
['perspective-distant', 'perspective-dramatic', 'perspective-none', 'perspective-[123px]'],
3086+
['perspective-normal', 'perspective-dramatic', 'perspective-none', 'perspective-[123px]'],
30873087
),
30883088
).toMatchInlineSnapshot(`
30893089
":root {
30903090
--perspective-dramatic: 100px;
3091-
--perspective-distant: 1200px;
3091+
--perspective-normal: 500px;
30923092
}
30933093
30943094
.perspective-\\[123px\\] {
30953095
perspective: 123px;
30963096
}
30973097
3098-
.perspective-distant {
3099-
perspective: 1200px;
3100-
}
3101-
31023098
.perspective-dramatic {
31033099
perspective: 100px;
31043100
}
31053101
31063102
.perspective-none {
31073103
perspective: none;
3104+
}
3105+
3106+
.perspective-normal {
3107+
perspective: 500px;
31083108
}"
31093109
`)
31103110
expect(run(['perspective', '-perspective'])).toEqual('')

packages/tailwindcss/src/utilities.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1430,7 +1430,6 @@ export function createUtilities(theme: Theme) {
14301430
})
14311431
suggest('perspective', () => [
14321432
{
1433-
values: [],
14341433
valueThemeKeys: ['--perspective'],
14351434
},
14361435
])

0 commit comments

Comments
 (0)