@@ -25,31 +25,31 @@ test('Check version', async t => {
2525 t . is ( stdout , version ) ;
2626} ) ;
2727
28- test ( 'Transform html witch config in package.json' , async t => {
28+ test ( 'Transform html with config in package.json' , async t => {
2929 t . plan ( 2 ) ;
3030 const filename = tempfile ( '.html' ) ;
3131 await execa ( cli , [ 'test/fixtures/input.html' , '-o' , filename ] ) ;
3232 t . true ( await pathExists ( filename ) ) ;
3333 t . is ( ( await read ( 'test/expected/output-config-pkg.html' ) ) , ( await read ( filename ) ) ) ;
3434} ) ;
3535
36- test ( 'Transform html witch indent' , async t => {
36+ test ( 'Transform html with indent' , async t => {
3737 t . plan ( 2 ) ;
3838 const filename = tempfile ( '.html' ) ;
3939 await execa ( cli , [ 'test/fixtures/input-indent.html' , '-o' , filename ] ) ;
4040 t . true ( await pathExists ( filename ) ) ;
4141 t . is ( ( await read ( 'test/expected/output-indent.html' ) ) , ( await read ( filename ) ) ) ;
4242} ) ;
4343
44- test ( 'Transform html witch config in file' , async t => {
44+ test ( 'Transform html with config in file' , async t => {
4545 t . plan ( 2 ) ;
4646 const filename = tempfile ( '.html' ) ;
4747 await execa ( cli , [ 'test/fixtures/input.html' , '-o' , filename , '-c' , 'test/fixtures/config.json' ] ) ;
4848 t . true ( await pathExists ( filename ) ) ;
4949 t . is ( ( await read ( 'test/expected/output-config-file.html' ) ) , ( await read ( filename ) ) ) ;
5050} ) ;
5151
52- test ( 'Transform html witch dot config in file' , async t => {
52+ test ( 'Transform html with dot config in file' , async t => {
5353 t . plan ( 2 ) ;
5454 const filename = tempfile ( '.html' ) ;
5555 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 => {
6565 t . is ( ( await read ( 'test/expected/output-indent.html' ) ) , ( await read ( `${ folder } /input-indent.html` ) ) ) ;
6666} ) ;
6767
68- // test('Transform html witch options replace', async t => {
68+ // test('Transform html with options replace', async t => {
6969// t.plan(2);
7070// const folder = await tempfile();
7171// await copy(['test/fixtures/input.html', 'test/fixtures/input-indent.html'], folder);
@@ -74,7 +74,7 @@ test('Transform html from two file', async t => {
7474// t.is((await read('test/expected/output-indent.html')), (await read(`${folder}/input-indent.html`)));
7575// });
7676
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 => {
7878 t . plan ( 2 ) ;
7979 const filename = tempfile ( '.html' ) ;
8080 await execa ( cli , [
@@ -94,7 +94,7 @@ test('Transform html witch config in file and stdin options use', async t => {
9494 t . is ( ( await read ( 'test/expected/output-bem.html' ) ) , ( await read ( filename ) ) ) ;
9595} ) ;
9696
97- test ( 'Transform html witch stdin options use' , async t => {
97+ test ( 'Transform html with stdin options use' , async t => {
9898 t . plan ( 2 ) ;
9999 const filename = tempfile ( '.html' ) ;
100100 await execa ( cli , [
@@ -110,29 +110,29 @@ test('Transform html witch stdin options use', async t => {
110110 t . is ( ( await read ( 'test/expected/output-custom-elements.html' ) ) , ( await read ( filename ) ) ) ;
111111} ) ;
112112
113- test ( 'Transform html witch stdin options use two key' , async t => {
113+ test ( 'Transform html with stdin options use two key' , async t => {
114114 t . plan ( 2 ) ;
115115 const filename = tempfile ( '.html' ) ;
116116 await execa ( cli , [
117117 'test/fixtures/input-bem.html' ,
118118 '-o' ,
119119 filename ,
120120 '-u' ,
121- 'posthtml-custom-elements' ,
122- '--posthtml-custom-elements.defaultTag' ,
123- 'span' ,
124- '-u' ,
125121 'posthtml-bem' ,
126122 '--posthtml-bem.elemPrefix=--' ,
127123 '--posthtml-bem.modPrefix' ,
128124 '_' ,
129- '--posthtml-bem.modDlmtr'
125+ '--posthtml-bem.modDlmtr' ,
126+ '-u' ,
127+ 'posthtml-custom-elements' ,
128+ '--posthtml-custom-elements.defaultTag' ,
129+ 'span'
130130 ] ) ;
131131 t . true ( await pathExists ( filename ) ) ;
132132 t . is ( ( await read ( 'test/expected/output-bem.html' ) ) , ( await read ( filename ) ) ) ;
133133} ) ;
134134
135- test ( 'Transform html stdin options use witch modules' , async t => {
135+ test ( 'Transform html stdin options use with modules' , async t => {
136136 t . plan ( 2 ) ;
137137 const filename = tempfile ( '.html' ) ;
138138 await execa ( cli , [
0 commit comments