Skip to content

Commit 7c878c3

Browse files
committed
test: fix config name
1 parent dee2e5b commit 7c878c3

4 files changed

Lines changed: 21 additions & 3 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"input": "test/fixtures/by-config/one-io-by-pattern/*-1.html",
3+
"output": "test/expected/by-config/one-io-by-pattern/",
4+
"plugins": {}
5+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"input": [
3+
"test/fixtures/by-config/two-io/input-1.html",
4+
"test/fixtures/by-config/two-io/input-2.html"
5+
],
6+
"output": "test/expected/by-config/two-io/",
7+
"plugins": {}
8+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"input": "test/fixtures/by-config/one-io/input.html",
3+
"output": "test/expected/by-config/one-io/output.html",
4+
"plugins": {}
5+
}

test/test-cli.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ test('Transform html stdin options only config one-io', async t => {
149149
t.plan(2);
150150
await execa(cli, [
151151
'-c',
152-
'test/fixtures/by-config/one-io/config.json'
152+
'test/fixtures/by-config/one-io/.config'
153153
]);
154154
t.true(await pathExists('test/expected/by-config/one-io/output.html'));
155155
t.is(
@@ -162,7 +162,7 @@ test('Transform html stdin options only config two-io to dir', async t => {
162162
t.plan(4);
163163
await execa(cli, [
164164
'-c',
165-
'test/fixtures/by-config/two-io/config.json'
165+
'test/fixtures/by-config/two-io/.config'
166166
]);
167167
t.true(await pathExists('test/expected/by-config/two-io/input-1.html'));
168168
t.true(await pathExists('test/expected/by-config/two-io/input-2.html'));
@@ -180,7 +180,7 @@ test('Transform html stdin options only config one-io-by-pattern', async t => {
180180
t.plan(2);
181181
await execa(cli, [
182182
'-c',
183-
'test/fixtures/by-config/one-io-by-pattern/config.json'
183+
'test/fixtures/by-config/one-io-by-pattern/.config'
184184
]);
185185
t.true(await pathExists('test/expected/by-config/one-io-by-pattern/input-1.html'));
186186
t.is(

0 commit comments

Comments
 (0)