Skip to content

Commit 6b307cd

Browse files
committed
Fix style
1 parent d28aa3c commit 6b307cd

File tree

3 files changed

+30
-28
lines changed

3 files changed

+30
-28
lines changed

__tests__/customConfig.test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ import tailwind from '../src/index'
44

55
test('it uses the values from the custom config file', () => {
66
return postcss([tailwind(path.resolve(`${__dirname}/fixtures/customConfig.js`))])
7-
.process(`
7+
.process(
8+
`
89
@responsive {
910
.foo {
1011
color: blue;
1112
}
1213
}
13-
`)
14+
`
15+
)
1416
.then(result => {
1517
const expected = `
1618
.foo {

__tests__/fixtures/customConfig.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
screens: {
3-
mobile: '400px',
4-
}
2+
screens: {
3+
mobile: '400px',
4+
},
55
}

__tests__/mergeConfigWithDefaults.test.js

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,66 +2,66 @@ import mergeConfigWithDefaults from '../src/util/mergeConfigWithDefaults'
22

33
test('missing top level keys are pulled from the default config', () => {
44
const userConfig = {
5-
colors: { red: '#ff0000' },
6-
modules: {},
7-
options: {},
5+
colors: { red: '#ff0000' },
6+
modules: {},
7+
options: {},
88
}
99

1010
const defaultConfig = {
11-
colors: { green: '#00ff00' },
11+
colors: { green: '#00ff00' },
1212
screens: {
13-
sm: '576px'
13+
sm: '576px',
1414
},
15-
modules: {},
16-
options: {},
15+
modules: {},
16+
options: {},
1717
}
1818

1919
const result = mergeConfigWithDefaults(userConfig, defaultConfig)
2020

2121
expect(result).toEqual({
22-
colors: { red: '#ff0000' },
22+
colors: { red: '#ff0000' },
2323
screens: {
24-
sm: '576px'
24+
sm: '576px',
2525
},
26-
modules: {},
27-
options: {},
26+
modules: {},
27+
options: {},
2828
})
2929
})
3030

3131
test('user modules are merged with default modules', () => {
3232
const userConfig = {
33-
modules: { flexbox: false },
34-
options: {},
33+
modules: { flexbox: false },
34+
options: {},
3535
}
3636

3737
const defaultConfig = {
38-
modules: {
38+
modules: {
3939
flexbox: ['responsive'],
4040
textAlign: ['responsive'],
4141
},
42-
options: {},
42+
options: {},
4343
}
4444

4545
const result = mergeConfigWithDefaults(userConfig, defaultConfig)
4646

4747
expect(result).toEqual({
48-
modules: {
48+
modules: {
4949
flexbox: false,
5050
textAlign: ['responsive'],
5151
},
52-
options: {},
52+
options: {},
5353
})
5454
})
5555

5656
test('user options are merged with default options', () => {
5757
const userConfig = {
58-
modules: {},
59-
options: { prefix: 'tw-' },
58+
modules: {},
59+
options: { prefix: 'tw-' },
6060
}
6161

6262
const defaultConfig = {
63-
modules: {},
64-
options: {
63+
modules: {},
64+
options: {
6565
prefix: '-',
6666
important: false,
6767
},
@@ -70,8 +70,8 @@ test('user options are merged with default options', () => {
7070
const result = mergeConfigWithDefaults(userConfig, defaultConfig)
7171

7272
expect(result).toEqual({
73-
modules: {},
74-
options: {
73+
modules: {},
74+
options: {
7575
prefix: 'tw-',
7676
important: false,
7777
},

0 commit comments

Comments
 (0)