@@ -25,31 +25,31 @@ test('Check version', async t => {
25
25
t . is ( stdout , version ) ;
26
26
} ) ;
27
27
28
- test ( 'Transform html witch config in package.json' , async t => {
28
+ test ( 'Transform html with config in package.json' , async t => {
29
29
t . plan ( 2 ) ;
30
30
const filename = tempfile ( '.html' ) ;
31
31
await execa ( cli , [ 'test/fixtures/input.html' , '-o' , filename ] ) ;
32
32
t . true ( await pathExists ( filename ) ) ;
33
33
t . is ( ( await read ( 'test/expected/output-config-pkg.html' ) ) , ( await read ( filename ) ) ) ;
34
34
} ) ;
35
35
36
- test ( 'Transform html witch indent' , async t => {
36
+ test ( 'Transform html with indent' , async t => {
37
37
t . plan ( 2 ) ;
38
38
const filename = tempfile ( '.html' ) ;
39
39
await execa ( cli , [ 'test/fixtures/input-indent.html' , '-o' , filename ] ) ;
40
40
t . true ( await pathExists ( filename ) ) ;
41
41
t . is ( ( await read ( 'test/expected/output-indent.html' ) ) , ( await read ( filename ) ) ) ;
42
42
} ) ;
43
43
44
- test ( 'Transform html witch config in file' , async t => {
44
+ test ( 'Transform html with config in file' , async t => {
45
45
t . plan ( 2 ) ;
46
46
const filename = tempfile ( '.html' ) ;
47
47
await execa ( cli , [ 'test/fixtures/input.html' , '-o' , filename , '-c' , 'test/fixtures/config.json' ] ) ;
48
48
t . true ( await pathExists ( filename ) ) ;
49
49
t . is ( ( await read ( 'test/expected/output-config-file.html' ) ) , ( await read ( filename ) ) ) ;
50
50
} ) ;
51
51
52
- test ( 'Transform html witch dot config in file' , async t => {
52
+ test ( 'Transform html with dot config in file' , async t => {
53
53
t . plan ( 2 ) ;
54
54
const filename = tempfile ( '.html' ) ;
55
55
await execa ( cli , [ 'test/fixtures/input.html' , '-o' , filename , '-c' , 'test/fixtures/.config' ] ) ;
@@ -65,7 +65,7 @@ test('Transform html from two file', async t => {
65
65
t . is ( ( await read ( 'test/expected/output-indent.html' ) ) , ( await read ( `${ folder } /input-indent.html` ) ) ) ;
66
66
} ) ;
67
67
68
- // test('Transform html witch options replace', async t => {
68
+ // test('Transform html with options replace', async t => {
69
69
// t.plan(2);
70
70
// const folder = await tempfile();
71
71
// await copy(['test/fixtures/input.html', 'test/fixtures/input-indent.html'], folder);
@@ -74,7 +74,7 @@ test('Transform html from two file', async t => {
74
74
// t.is((await read('test/expected/output-indent.html')), (await read(`${folder}/input-indent.html`)));
75
75
// });
76
76
77
- test ( 'Transform html witch config in file and stdin options use' , async t => {
77
+ test ( 'Transform html with config in file and stdin options use' , async t => {
78
78
t . plan ( 2 ) ;
79
79
const filename = tempfile ( '.html' ) ;
80
80
await execa ( cli , [
@@ -94,7 +94,7 @@ test('Transform html witch config in file and stdin options use', async t => {
94
94
t . is ( ( await read ( 'test/expected/output-bem.html' ) ) , ( await read ( filename ) ) ) ;
95
95
} ) ;
96
96
97
- test ( 'Transform html witch stdin options use' , async t => {
97
+ test ( 'Transform html with stdin options use' , async t => {
98
98
t . plan ( 2 ) ;
99
99
const filename = tempfile ( '.html' ) ;
100
100
await execa ( cli , [
@@ -110,29 +110,29 @@ test('Transform html witch stdin options use', async t => {
110
110
t . is ( ( await read ( 'test/expected/output-custom-elements.html' ) ) , ( await read ( filename ) ) ) ;
111
111
} ) ;
112
112
113
- test ( 'Transform html witch stdin options use two key' , async t => {
113
+ test ( 'Transform html with stdin options use two key' , async t => {
114
114
t . plan ( 2 ) ;
115
115
const filename = tempfile ( '.html' ) ;
116
116
await execa ( cli , [
117
117
'test/fixtures/input-bem.html' ,
118
118
'-o' ,
119
119
filename ,
120
120
'-u' ,
121
- 'posthtml-custom-elements' ,
122
- '--posthtml-custom-elements.defaultTag' ,
123
- 'span' ,
124
- '-u' ,
125
121
'posthtml-bem' ,
126
122
'--posthtml-bem.elemPrefix=--' ,
127
123
'--posthtml-bem.modPrefix' ,
128
124
'_' ,
129
- '--posthtml-bem.modDlmtr'
125
+ '--posthtml-bem.modDlmtr' ,
126
+ '-u' ,
127
+ 'posthtml-custom-elements' ,
128
+ '--posthtml-custom-elements.defaultTag' ,
129
+ 'span'
130
130
] ) ;
131
131
t . true ( await pathExists ( filename ) ) ;
132
132
t . is ( ( await read ( 'test/expected/output-bem.html' ) ) , ( await read ( filename ) ) ) ;
133
133
} ) ;
134
134
135
- test ( 'Transform html stdin options use witch modules' , async t => {
135
+ test ( 'Transform html stdin options use with modules' , async t => {
136
136
t . plan ( 2 ) ;
137
137
const filename = tempfile ( '.html' ) ;
138
138
await execa ( cli , [
0 commit comments