Skip to content

Commit 4c0537e

Browse files
committed
test: return strange fail test
1 parent 01e02b8 commit 4c0537e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

test/test-cli.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import test from 'ava';
44
import execa from 'execa';
55
import pathExists from 'path-exists';
66
import readPkg from 'read-pkg';
7-
// import copy from 'cpy';
7+
import copy from 'cpy';
88
import tempfile from 'tempfile';
99
// import cli from '../src/cli';
1010

@@ -63,14 +63,14 @@ test('Transform html from two file', async t => {
6363
t.is((await read('test/expected/output-indent.html')), (await read(`${folder}/test/fixtures/input-indent.html`)));
6464
});
6565

66-
// test.skip('Transform html witch options replace', async t => {
67-
// t.plan(2);
68-
// const folder = await tempfile();
69-
// await copy(['test/fixtures/input.html', 'test/fixtures/input-indent.html'], folder, {parents: true});
70-
// await execa(cli, [`${folder}/test/fixtures/input.html`, `${folder}/test/fixtures/input-indent.html`]);
71-
// t.is((await read('test/expected/output-config-pkg.html')), (await read(`${folder}/test/fixtures/input.html`)));
72-
// t.is((await read('test/expected/output-indent.html')), (await read(`${folder}/test/fixtures/input-indent.html`)));
73-
// });
66+
test('Transform html witch options replace', async t => {
67+
t.plan(2);
68+
const folder = await tempfile();
69+
await copy(['test/fixtures/input.html', 'test/fixtures/input-indent.html'], folder, {parents: true});
70+
await execa(cli, [`${folder}/test/fixtures/input.html`, `${folder}/test/fixtures/input-indent.html`]);
71+
t.is((await read('test/expected/output-config-pkg.html')), (await read(`${folder}/test/fixtures/input.html`)));
72+
t.is((await read('test/expected/output-indent.html')), (await read(`${folder}/test/fixtures/input-indent.html`)));
73+
});
7474

7575
test('Transform html witch config in file and stdin options use', async t => {
7676
t.plan(2);

0 commit comments

Comments
 (0)