Inline result
This commit is contained in:
parent
00dc589c9c
commit
388eb307ca
1 changed files with 4 additions and 5 deletions
9
test.js
9
test.js
|
@ -14,7 +14,6 @@ function generatePluginCss(options = {}) {
|
||||||
.process('@tailwind utilities;', {
|
.process('@tailwind utilities;', {
|
||||||
from: undefined
|
from: undefined
|
||||||
})
|
})
|
||||||
.then(result => result.css)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
expect.extend({
|
expect.extend({
|
||||||
|
@ -22,8 +21,8 @@ expect.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
test('it generates the correct classes with no variants', () => {
|
test('it generates the correct classes with no variants', () => {
|
||||||
generatePluginCss().then(css => {
|
generatePluginCss().then(result => {
|
||||||
expect(css).toMatchCss(`
|
expect(result.css).toMatchCss(`
|
||||||
.test {
|
.test {
|
||||||
display: block
|
display: block
|
||||||
}
|
}
|
||||||
|
@ -32,8 +31,8 @@ test('it generates the correct classes with no variants', () => {
|
||||||
})
|
})
|
||||||
|
|
||||||
test('it generates the correct classes with variants', () => {
|
test('it generates the correct classes with variants', () => {
|
||||||
generatePluginCss({ variants: ['hover', 'focus'] }).then(css => {
|
generatePluginCss({ variants: ['hover', 'focus'] }).then(result => {
|
||||||
expect(css).toMatchCss(`
|
expect(result.css).toMatchCss(`
|
||||||
.test {
|
.test {
|
||||||
display: block
|
display: block
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue