@@ -4,7 +4,7 @@ import test from 'ava';
4
4
import execa from 'execa' ;
5
5
import pathExists from 'path-exists' ;
6
6
import readPkg from 'read-pkg' ;
7
- import copy from 'cpy' ;
7
+ // import copy from 'cpy';
8
8
import tempfile from 'tempfile' ;
9
9
10
10
const cli = path . resolve ( 'lib/cli.js' ) ;
@@ -62,14 +62,14 @@ test('Transform html from two file', async t => {
62
62
t . is ( ( await read ( 'test/expected/output-indent.html' ) ) , ( await read ( `${ folder } /input-indent.html` ) ) ) ;
63
63
} ) ;
64
64
65
- test ( 'Transform html witch options replace' , async t => {
66
- t . plan ( 2 ) ;
67
- const folder = await tempfile ( ) ;
68
- await copy ( [ path . normalize ( 'test/fixtures/input.html' ) , path . normalize ( 'test/fixtures/input-indent.html' ) ] , folder ) ;
69
- await execa ( cli , [ path . normalize ( `${ folder } /input.html` ) , path . normalize ( `${ folder } /input-indent.html` ) ] ) ;
70
- t . is ( ( await read ( path . normalize ( 'test/expected/output-config-pkg.html' ) ) ) , ( await read ( path . normalize ( `${ folder } /input.html` ) ) ) ) ;
71
- t . is ( ( await read ( path . normalize ( 'test/expected/output-indent.html' ) ) ) , ( await read ( path . normalize ( `${ folder } /input-indent.html` ) ) ) ) ;
72
- } ) ;
65
+ // test('Transform html witch options replace', async t => {
66
+ // t.plan(2);
67
+ // const folder = await tempfile();
68
+ // await copy(['test/fixtures/input.html', 'test/fixtures/input-indent.html'], folder);
69
+ // await execa(cli, [`${folder}/input.html`, `${folder}/input-indent.html`]);
70
+ // t.is((await read('test/expected/output-config-pkg.html')), (await read(`${folder}/input.html`)));
71
+ // t.is((await read('test/expected/output-indent.html')), (await read(`${folder}/input-indent.html`)));
72
+ // });
73
73
74
74
test ( 'Transform html witch config in file and stdin options use' , async t => {
75
75
t . plan ( 2 ) ;
0 commit comments