Skip to content

Commit 3165971

Browse files
committed
test: async/await not needed
1 parent 0b53fa2 commit 3165971

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

test/test-cfg-resolve.js

+14-14
Original file line numberDiff line numberDiff line change
@@ -13,76 +13,76 @@ test('should throw error `input files not found`', t => {
1313
t.is(error.message, 'input files not found');
1414
});
1515

16-
test('should return config with one use key without property', async t => {
16+
test('should return config with one use key without property', t => {
1717
const flags = {
1818
use: 'posthtml-bem'
1919
};
20-
const config = await cfgResolve({flags});
20+
const config = cfgResolve({flags});
2121
const expected = {'posthtml-bem': {}};
2222

2323
t.deepEqual(config.plugins, expected);
2424
});
2525

26-
test('should return config with one use key with one property', async t => {
26+
test('should return config with one use key with one property', t => {
2727
const flags = {
2828
use: 'posthtml-bem',
2929
posthtmlBem: {
3030
prefix: '__'
3131
}
3232
};
33-
const config = await cfgResolve({flags});
33+
const config = cfgResolve({flags});
3434
const expected = {'posthtml-bem': {prefix: '__'}};
3535

3636
t.deepEqual(config.plugins, expected);
3737
});
3838

39-
test('should return config with key config plugins', async t => {
39+
test('should return config with key config plugins', t => {
4040
const flags = {
4141
config: 'test/config/.config-plugins'
4242
};
43-
const config = await cfgResolve({flags});
43+
const config = cfgResolve({flags});
4444
const expected = {'posthtml-bem': {}};
4545

4646
t.deepEqual(config.plugins, expected);
4747
});
4848

49-
test('should return config with key config options', async t => {
49+
test('should return config with key config options', t => {
5050
const flags = {
5151
config: 'test/config/.config-options'
5252
};
53-
const config = await cfgResolve({flags});
53+
const config = cfgResolve({flags});
5454
const expected = {sync: true};
5555

5656
t.deepEqual(config.options, expected);
5757
});
5858

59-
test('should return config options', async t => {
59+
test('should return config options', t => {
6060
const flags = {
6161
options: {sync: true}
6262
};
63-
const config = await cfgResolve({flags});
63+
const config = cfgResolve({flags});
6464
const expected = {sync: true};
6565

6666
t.deepEqual(config.options, expected);
6767
});
6868

69-
test('should return config with key config and use key', async t => {
69+
test('should return config with key config and use key', t => {
7070
const flags = {
7171
use: 'posthtml-assets',
7272
config: 'test/config/.config-plugins'
7373
};
74-
const config = await cfgResolve({flags});
74+
const config = cfgResolve({flags});
7575
const expected = {'posthtml-bem': {}, 'posthtml-assets': {}};
7676

7777
t.deepEqual(config.plugins, expected);
7878
});
7979

80-
test('should return config when CLI params priority', async t => {
80+
test('should return config when CLI params priority', t => {
8181
const input = 'src/template/**/*.html';
8282
const flags = {
8383
config: 'test/config/.config-input-priority'
8484
};
85-
const config = await cfgResolve({input, flags});
85+
const config = cfgResolve({input, flags});
8686
const expected = 'src/template/**/*.html';
8787

8888
t.deepEqual(config.input, expected);

0 commit comments

Comments
 (0)