@@ -13,76 +13,76 @@ test('should throw error `input files not found`', t => {
13
13
t . is ( error . message , 'input files not found' ) ;
14
14
} ) ;
15
15
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 => {
17
17
const flags = {
18
18
use : 'posthtml-bem'
19
19
} ;
20
- const config = await cfgResolve ( { flags} ) ;
20
+ const config = cfgResolve ( { flags} ) ;
21
21
const expected = { 'posthtml-bem' : { } } ;
22
22
23
23
t . deepEqual ( config . plugins , expected ) ;
24
24
} ) ;
25
25
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 => {
27
27
const flags = {
28
28
use : 'posthtml-bem' ,
29
29
posthtmlBem : {
30
30
prefix : '__'
31
31
}
32
32
} ;
33
- const config = await cfgResolve ( { flags} ) ;
33
+ const config = cfgResolve ( { flags} ) ;
34
34
const expected = { 'posthtml-bem' : { prefix : '__' } } ;
35
35
36
36
t . deepEqual ( config . plugins , expected ) ;
37
37
} ) ;
38
38
39
- test ( 'should return config with key config plugins' , async t => {
39
+ test ( 'should return config with key config plugins' , t => {
40
40
const flags = {
41
41
config : 'test/config/.config-plugins'
42
42
} ;
43
- const config = await cfgResolve ( { flags} ) ;
43
+ const config = cfgResolve ( { flags} ) ;
44
44
const expected = { 'posthtml-bem' : { } } ;
45
45
46
46
t . deepEqual ( config . plugins , expected ) ;
47
47
} ) ;
48
48
49
- test ( 'should return config with key config options' , async t => {
49
+ test ( 'should return config with key config options' , t => {
50
50
const flags = {
51
51
config : 'test/config/.config-options'
52
52
} ;
53
- const config = await cfgResolve ( { flags} ) ;
53
+ const config = cfgResolve ( { flags} ) ;
54
54
const expected = { sync : true } ;
55
55
56
56
t . deepEqual ( config . options , expected ) ;
57
57
} ) ;
58
58
59
- test ( 'should return config options' , async t => {
59
+ test ( 'should return config options' , t => {
60
60
const flags = {
61
61
options : { sync : true }
62
62
} ;
63
- const config = await cfgResolve ( { flags} ) ;
63
+ const config = cfgResolve ( { flags} ) ;
64
64
const expected = { sync : true } ;
65
65
66
66
t . deepEqual ( config . options , expected ) ;
67
67
} ) ;
68
68
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 => {
70
70
const flags = {
71
71
use : 'posthtml-assets' ,
72
72
config : 'test/config/.config-plugins'
73
73
} ;
74
- const config = await cfgResolve ( { flags} ) ;
74
+ const config = cfgResolve ( { flags} ) ;
75
75
const expected = { 'posthtml-bem' : { } , 'posthtml-assets' : { } } ;
76
76
77
77
t . deepEqual ( config . plugins , expected ) ;
78
78
} ) ;
79
79
80
- test ( 'should return config when CLI params priority' , async t => {
80
+ test ( 'should return config when CLI params priority' , t => {
81
81
const input = 'src/template/**/*.html' ;
82
82
const flags = {
83
83
config : 'test/config/.config-input-priority'
84
84
} ;
85
- const config = await cfgResolve ( { input, flags} ) ;
85
+ const config = cfgResolve ( { input, flags} ) ;
86
86
const expected = 'src/template/**/*.html' ;
87
87
88
88
t . deepEqual ( config . input , expected ) ;
0 commit comments