feat: bump minimum node version to 16 and add tests (#86)

BREAKING CHANGE: Minimum node version is now 16
This commit is contained in:
Samuel Attard
2023-11-09 10:56:22 -08:00
committed by Samuel Attard
parent bb304ce10b
commit b6f0c88db4
18 changed files with 3649 additions and 1490 deletions

11
test/sha.spec.ts Normal file
View File

@@ -0,0 +1,11 @@
import * as path from 'path';
import { sha } from '../src/sha';
describe('sha', () => {
it('should correctly hash a file', async () => {
expect(await sha(path.resolve(__dirname, 'fixtures', 'tohash'))).toEqual(
'12998c017066eb0d2a70b94e6ed3192985855ce390f321bbdb832022888bd251',
);
});
});