Skip to content

Commit

Permalink
test: fix config name
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrum committed Jun 27, 2019
1 parent dee2e5b commit 7c878c3
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
5 changes: 5 additions & 0 deletions test/fixtures/by-config/one-io-by-pattern/.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"input": "test/fixtures/by-config/one-io-by-pattern/*-1.html",
"output": "test/expected/by-config/one-io-by-pattern/",
"plugins": {}
}
8 changes: 8 additions & 0 deletions test/fixtures/by-config/one-io/.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"input": [
"test/fixtures/by-config/two-io/input-1.html",
"test/fixtures/by-config/two-io/input-2.html"
],
"output": "test/expected/by-config/two-io/",
"plugins": {}
}
5 changes: 5 additions & 0 deletions test/fixtures/by-config/two-io/.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"input": "test/fixtures/by-config/one-io/input.html",
"output": "test/expected/by-config/one-io/output.html",
"plugins": {}
}
6 changes: 3 additions & 3 deletions test/test-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ test('Transform html stdin options only config one-io', async t => {
t.plan(2);
await execa(cli, [
'-c',
'test/fixtures/by-config/one-io/config.json'
'test/fixtures/by-config/one-io/.config'
]);
t.true(await pathExists('test/expected/by-config/one-io/output.html'));
t.is(
Expand All @@ -162,7 +162,7 @@ test('Transform html stdin options only config two-io to dir', async t => {
t.plan(4);
await execa(cli, [
'-c',
'test/fixtures/by-config/two-io/config.json'
'test/fixtures/by-config/two-io/.config'
]);
t.true(await pathExists('test/expected/by-config/two-io/input-1.html'));
t.true(await pathExists('test/expected/by-config/two-io/input-2.html'));
Expand All @@ -180,7 +180,7 @@ test('Transform html stdin options only config one-io-by-pattern', async t => {
t.plan(2);
await execa(cli, [
'-c',
'test/fixtures/by-config/one-io-by-pattern/config.json'
'test/fixtures/by-config/one-io-by-pattern/.config'
]);
t.true(await pathExists('test/expected/by-config/one-io-by-pattern/input-1.html'));
t.is(
Expand Down

0 comments on commit 7c878c3

Please sign in to comment.