From 497e9d810c4d9287b1c6cf8cd04f9e783d55b51d Mon Sep 17 00:00:00 2001 From: SavageCore Date: Fri, 25 Aug 2023 23:42:53 +0100 Subject: [PATCH] Add test for verifyFile --- test.js | 6 ++++++ 1 file changed, 6 insertions(+) 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();