Skip to content

Commit 0d0d97d

Browse files
Fix invalid template tags in tests (#19400)
Co-authored-by: Jordan Pittman <[email protected]>
1 parent 7c69e83 commit 0d0d97d

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

integrations/cli/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import os from 'node:os'
33
import path from 'node:path'
44
import { fileURLToPath } from 'node:url'
55
import { describe } from 'vitest'
6-
import { candidate, css, html, js, json, retryAssertion, test, ts, yaml } from '../utils'
6+
import { candidate, css, html, js, json, retryAssertion, test, ts, txt, yaml } from '../utils'
77

88
const __dirname = path.dirname(fileURLToPath(import.meta.url))
99

@@ -2591,7 +2591,7 @@ test(
25912591
}
25922592
}
25932593
`,
2594-
'input.css': css`
2594+
'input.css': txt`
25952595
.test {
25962596
color: red;
25972597
*/

integrations/cli/standalone.test.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os from 'node:os'
22
import path from 'node:path'
3-
import { candidate, css, html, js, json, test } from '../utils'
3+
import { candidate, css, html, js, json, test, ts } from '../utils'
44

55
const STANDALONE_BINARY = (() => {
66
switch (os.platform()) {
@@ -122,7 +122,7 @@ test(
122122
})
123123
})
124124
`,
125-
'src/plugin.ts': js`
125+
'src/plugin.ts': ts`
126126
import plugin from 'tailwindcss/plugin'
127127
128128
// Make sure all available JS APIs can be imported and used
@@ -132,8 +132,7 @@ test(
132132
import defaultTheme from 'tailwindcss/defaultTheme'
133133
import * as pkg from 'tailwindcss/package.json'
134134
135-
export interface PluginOptions {
136-
}
135+
export interface PluginOptions {}
137136
138137
export default plugin(function ({ addUtilities }) {
139138
addUtilities({

0 commit comments

Comments
 (0)