Fix code style
This commit is contained in:
parent
f3097f9421
commit
b036cac4b5
3 changed files with 18 additions and 17 deletions
|
|
@ -205,12 +205,10 @@ test('you can apply utility classes without using the given prefix', () => {
|
|||
prefix: 'tw-',
|
||||
}
|
||||
|
||||
return run(input, config, processPlugins(corePlugins(config), config).utilities).then(
|
||||
result => {
|
||||
expect(result.css).toEqual(expected)
|
||||
expect(result.warnings().length).toBe(0)
|
||||
}
|
||||
)
|
||||
return run(input, config, processPlugins(corePlugins(config), config).utilities).then(result => {
|
||||
expect(result.css).toEqual(expected)
|
||||
expect(result.warnings().length).toBe(0)
|
||||
})
|
||||
})
|
||||
|
||||
test('you can apply utility classes without using the given prefix when using a function for the prefix', () => {
|
||||
|
|
@ -229,10 +227,8 @@ test('you can apply utility classes without using the given prefix when using a
|
|||
},
|
||||
}
|
||||
|
||||
return run(input, config, processPlugins(corePlugins(config), config).utilities).then(
|
||||
result => {
|
||||
expect(result.css).toEqual(expected)
|
||||
expect(result.warnings().length).toBe(0)
|
||||
}
|
||||
)
|
||||
return run(input, config, processPlugins(corePlugins(config), config).utilities).then(result => {
|
||||
expect(result.css).toEqual(expected)
|
||||
expect(result.warnings().length).toBe(0)
|
||||
})
|
||||
})
|
||||
|
|
|
|||
|
|
@ -52,10 +52,12 @@ import zIndex from './plugins/zIndex'
|
|||
function loadPlugins({ theme, variants, corePlugins }, plugins) {
|
||||
return Object.keys(plugins)
|
||||
.filter(plugin => corePlugins[plugin] !== false)
|
||||
.map(plugin => plugins[plugin]({
|
||||
values: theme[plugin],
|
||||
variants: variants[plugin],
|
||||
}))
|
||||
.map(plugin =>
|
||||
plugins[plugin]({
|
||||
values: theme[plugin],
|
||||
variants: variants[plugin],
|
||||
})
|
||||
)
|
||||
}
|
||||
|
||||
export default function(config) {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,10 @@ import buildSelectorVariant from '../util/buildSelectorVariant'
|
|||
|
||||
export default function(config) {
|
||||
return function(css) {
|
||||
const { theme: { screens }, separator } = config
|
||||
const {
|
||||
theme: { screens },
|
||||
separator,
|
||||
} = config
|
||||
const responsiveRules = []
|
||||
const finalRules = []
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue