Skip to content

Commit

Permalink
test: ensure skip link arrays are tested (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored Dec 28, 2020
1 parent c752724 commit 6e49545
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/fixtures/config/skip-array-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"skip": [
"fake.local",
"fake2.local"
]
}
10 changes: 10 additions & 0 deletions test/zcli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,14 @@ describe('cli', () => {
assert.strictEqual(res.exitCode, 1);
assert.match(res.stdout, /reason: getaddrinfo/);
});

it('should allow passing a config', async () => {
const res = await execa('npx', [
'linkinator',
'test/fixtures/basic',
'--config',
'test/fixtures/config/skip-array-config.json',
]);
assert.strictEqual(res.exitCode, 0);
});
});

0 comments on commit 6e49545

Please sign in to comment.