Skip to content

Commit

Permalink
Style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwathan committed Mar 5, 2018
1 parent dac5911 commit 6849818
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions __tests__/processPlugins.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,11 +256,11 @@ test('plugins can provide fallbacks to keys missing from the config', () => {
'8': '8px',
},
plugins: [
function({ rule, atRule, addComponents, config }) {
function({ rule, addComponents, config }) {
addComponents([
rule('.btn', {
'border-radius': config('borderRadius.default', '.25rem')
})
'border-radius': config('borderRadius.default', '.25rem'),
}),
])
},
],
Expand All @@ -274,10 +274,10 @@ test('plugins can provide fallbacks to keys missing from the config', () => {
`)
})

test('the "@" sign is optional in at-rules', () => {
test("the '@' sign is optional in at-rules", () => {
const [components, utilities] = processPlugins({
plugins: [
function ({ rule, atRule, addComponents }) {
function({ rule, atRule, addComponents }) {
addComponents([
rule('.card', {
padding: '.5rem',
Expand All @@ -291,9 +291,9 @@ test('the "@" sign is optional in at-rules', () => {
rule('.card', {
padding: '1.5rem',
}),
])
]),
])
}
},
],
})

Expand All @@ -316,15 +316,15 @@ test('the "@" sign is optional in at-rules', () => {
})

test('variants are optional when adding utilities', () => {
const [components, utilities] = processPlugins({
const [, utilities] = processPlugins({
plugins: [
function ({ rule, addUtilities }) {
function({ rule, addUtilities }) {
addUtilities([
rule('.border-collapse', {
'border-collapse': 'collapse'
})
'border-collapse': 'collapse',
}),
])
}
},
],
})

Expand All @@ -340,33 +340,33 @@ test('variants are optional when adding utilities', () => {
test('plugins can add multiple sets of utilities and components', () => {
const [components, utilities] = processPlugins({
plugins: [
function ({ rule, atRule, addUtilities, addComponents }) {
function({ rule, addUtilities, addComponents }) {
addComponents([
rule('.card', {
padding: '1rem',
'border-radius': '.25rem',
})
}),
])

addUtilities([
rule('.skew-12deg', {
transform: 'skewY(-12deg)'
})
transform: 'skewY(-12deg)',
}),
])

addComponents([
rule('.btn', {
padding: '1rem .5rem',
display: 'inline-block',
})
}),
])

addUtilities([
rule('.border-collapse', {
'border-collapse': 'collapse'
})
'border-collapse': 'collapse',
}),
])
}
},
],
})

Expand Down

0 comments on commit 6849818

Please sign in to comment.