Fix ESLint issues

This commit is contained in:
Adam Wathan 2017-11-06 15:08:21 -05:00
parent 06ed308c28
commit bab36e0559
2 changed files with 10 additions and 10 deletions

View File

@ -5,7 +5,7 @@ function run(input, opts = {}) {
return postcss([plugin(() => opts)]).process(input)
}
test("it looks up values in the config using dot notation", () => {
test('it looks up values in the config using dot notation', () => {
const input = `
.banana { color: config('colors.yellow'); }
`
@ -17,14 +17,14 @@ test("it looks up values in the config using dot notation", () => {
return run(input, {
colors: {
yellow: '#f7cc50',
}
},
}).then(result => {
expect(result.css).toEqual(output)
expect(result.warnings().length).toBe(0)
})
})
test("quotes are optional around the lookup path", () => {
test('quotes are optional around the lookup path', () => {
const input = `
.banana { color: config(colors.yellow); }
`
@ -36,14 +36,14 @@ test("quotes are optional around the lookup path", () => {
return run(input, {
colors: {
yellow: '#f7cc50',
}
},
}).then(result => {
expect(result.css).toEqual(output)
expect(result.warnings().length).toBe(0)
})
})
test("a default value can be provided", () => {
test('a default value can be provided', () => {
const input = `
.cookieMonster { color: config('colors.blue', #0000ff); }
`
@ -55,14 +55,14 @@ test("a default value can be provided", () => {
return run(input, {
colors: {
yellow: '#f7cc50',
}
},
}).then(result => {
expect(result.css).toEqual(output)
expect(result.warnings().length).toBe(0)
})
})
test("quotes are preserved around default values", () => {
test('quotes are preserved around default values', () => {
const input = `
.heading { font-family: config('fonts.sans', "Helvetica Neue"); }
`
@ -73,8 +73,8 @@ test("quotes are preserved around default values", () => {
return run(input, {
fonts: {
serif: "Constantia",
}
serif: 'Constantia',
},
}).then(result => {
expect(result.css).toEqual(output)
expect(result.warnings().length).toBe(0)

View File

@ -119,7 +119,7 @@ export default function({ padding, margin, negativeMargin }) {
'margin-bottom': 'auto',
},
'm-auto': {
'margin': 'auto',
margin: 'auto',
},
}),
defineNegativeMargin(negativeMargin),