Skip to content

Commit 6e49545

Browse files
authoredDec 28, 2020
test: ensure skip link arrays are tested (#223)
1 parent c752724 commit 6e49545

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"skip": [
3+
"fake.local",
4+
"fake2.local"
5+
]
6+
}

‎test/zcli.ts

+10
Original file line numberDiff line numberDiff line change
@@ -184,4 +184,14 @@ describe('cli', () => {
184184
assert.strictEqual(res.exitCode, 1);
185185
assert.match(res.stdout, /reason: getaddrinfo/);
186186
});
187+
188+
it('should allow passing a config', async () => {
189+
const res = await execa('npx', [
190+
'linkinator',
191+
'test/fixtures/basic',
192+
'--config',
193+
'test/fixtures/config/skip-array-config.json',
194+
]);
195+
assert.strictEqual(res.exitCode, 0);
196+
});
187197
});

0 commit comments

Comments
 (0)
Please sign in to comment.