Skip to content

Commit 5995efb

Browse files
authored
Merge pull request #271 from SavageCore/feature/improve-test-coverage
Add test for `verifyFile`
2 parents 5cb0b94 + 497e9d8 commit 5995efb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const test = require('ava');
2+
const verifyFile = require('./lib/verify-file.js');
23

34
const main = async () => {
45
const {execa} = await import('execa');
@@ -24,6 +25,11 @@ const main = async () => {
2425
test('is executable', async t => {
2526
t.truthy(await executable(m.path));
2627
});
28+
29+
test('verifies file', t => {
30+
t.true(verifyFile(m.path));
31+
t.falsy(verifyFile('foo'));
32+
});
2733
};
2834

2935
main();

0 commit comments

Comments
 (0)