Skip to content

Commit

Permalink
🧪 test(none): improve bud.tailwindcss.generateImports test
Browse files Browse the repository at this point in the history
  • Loading branch information
kellymears committed Jan 26, 2024
1 parent 40bdad7 commit f9d98d0
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/integration/tailwindcss.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@ describe(`examples/tailwindcss`, () => {
const test = setup({
label: `@examples/tailwindcss`,
})

await test.install()
await test.build()

expect(test.getAsset(`main.css`).includes(`@import`)).toBe(false)
expect(test.getAsset(`main.css`).includes(`@apply`)).toBe(false)
expect(test.getAsset(`main.css`).match(/ /)).toBe(null)
expect(test.getAsset(`main.css`).match(/\\n/)).toBe(null)
expect(test.getAsset(`main.css`)).not.toContain(`@import`)
expect(test.getAsset(`main.css`)).not.toContain(`@apply`)
expect(test.getAsset(`main.css`)).not.toMatch(/ /)
expect(test.getAsset(`main.css`)).not.toMatch(/\\n/)
expect(test.getAsset(`main.css`)).toMatch(/^\*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}/)

expect(test.getAsset(`main.js`)).toContain(`#4f46e5`)
})
})

0 comments on commit f9d98d0

Please sign in to comment.