mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Fix invalid template tags in tests (#19400)
Co-authored-by: Jordan Pittman <jordan@cryptica.me>
This commit is contained in:
parent
7c69e83e81
commit
0d0d97d0cb
@ -3,7 +3,7 @@ import os from 'node:os'
|
||||
import path from 'node:path'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import { describe } from 'vitest'
|
||||
import { candidate, css, html, js, json, retryAssertion, test, ts, yaml } from '../utils'
|
||||
import { candidate, css, html, js, json, retryAssertion, test, ts, txt, yaml } from '../utils'
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
||||
|
||||
@ -2591,7 +2591,7 @@ test(
|
||||
}
|
||||
}
|
||||
`,
|
||||
'input.css': css`
|
||||
'input.css': txt`
|
||||
.test {
|
||||
color: red;
|
||||
*/
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import os from 'node:os'
|
||||
import path from 'node:path'
|
||||
import { candidate, css, html, js, json, test } from '../utils'
|
||||
import { candidate, css, html, js, json, test, ts } from '../utils'
|
||||
|
||||
const STANDALONE_BINARY = (() => {
|
||||
switch (os.platform()) {
|
||||
@ -122,7 +122,7 @@ test(
|
||||
})
|
||||
})
|
||||
`,
|
||||
'src/plugin.ts': js`
|
||||
'src/plugin.ts': ts`
|
||||
import plugin from 'tailwindcss/plugin'
|
||||
|
||||
// Make sure all available JS APIs can be imported and used
|
||||
@ -132,8 +132,7 @@ test(
|
||||
import defaultTheme from 'tailwindcss/defaultTheme'
|
||||
import * as pkg from 'tailwindcss/package.json'
|
||||
|
||||
export interface PluginOptions {
|
||||
}
|
||||
export interface PluginOptions {}
|
||||
|
||||
export default plugin(function ({ addUtilities }) {
|
||||
addUtilities({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user