@@ -4,7 +4,7 @@ const test = require('ava')
44const execa = require ( 'execa' )
55const pathExists = require ( 'path-exists' )
66const readPkg = require ( 'read-pkg' )
7- // const copy = require('cpy')
7+ const copy = require ( 'cpy' )
88const tempfile = require ( 'tempfile' )
99
1010const cli = path . resolve ( 'cli.js' )
@@ -43,7 +43,6 @@ test('Check version', async t => {
4343 )
4444} )
4545
46- /*
4746test ( 'Transform html witch config in package.json' , async t => {
4847 t . plan ( 2 )
4948 const filename = tempfile ( '.html' )
@@ -59,7 +58,7 @@ test('Transform html witch indent', async t => {
5958 t . true ( await pathExists ( filename ) )
6059 t . is ( ( await read ( 'test/expected/output-indent.html' ) ) , ( await read ( filename ) ) )
6160} )
62- */
61+
6362test ( 'Transform html witch config in file' , async t => {
6463 t . plan ( 2 )
6564 const filename = tempfile ( '.html' )
@@ -75,7 +74,7 @@ test('Transform html witch dot config in file', async t => {
7574 t . true ( await pathExists ( filename ) )
7675 t . is ( ( await read ( 'test/expected/output-config-file.html' ) ) , ( await read ( filename ) ) )
7776} )
78- /*
77+
7978test ( 'Transform html from folder' , async t => {
8079 t . plan ( 2 )
8180 const folder = await tempfile ( )
@@ -92,7 +91,6 @@ test('Transform html witch options replace', async t => {
9291 t . is ( ( await read ( 'test/expected/output-config-pkg.html' ) ) , ( await read ( `${ folder } /input.html` ) ) )
9392 t . is ( ( await read ( 'test/expected/output-indent.html' ) ) , ( await read ( `${ folder } /input-indent.html` ) ) )
9493} )
95- */
9694
9795test ( 'Transform html witch config in file and stdin options use' , async t => {
9896 t . plan ( 2 )
0 commit comments