diff --git a/test.js b/test.js index e6a79ad..75cf0ba 100644 --- a/test.js +++ b/test.js @@ -1,4 +1,5 @@ const test = require('ava'); +const verifyFile = require('./lib/verify-file.js'); const main = async () => { const {execa} = await import('execa'); @@ -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();