Skip to content

Commit

Permalink
Merge pull request #271 from SavageCore/feature/improve-test-coverage
Browse files Browse the repository at this point in the history
Add test for `verifyFile`
  • Loading branch information
SavageCore authored Aug 25, 2023
2 parents 5cb0b94 + 497e9d8 commit 5995efb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const test = require('ava');
const verifyFile = require('./lib/verify-file.js');

const main = async () => {
const {execa} = await import('execa');
Expand All @@ -24,6 +25,11 @@ const main = async () => {
test('is executable', async t => {
t.truthy(await executable(m.path));
});

test('verifies file', t => {
t.true(verifyFile(m.path));
t.falsy(verifyFile('foo'));
});
};

main();

0 comments on commit 5995efb

Please sign in to comment.