Some checks failed
Publish documentation / docs (push) Failing after 1m9s
BREAKING CHANGE: Requires Node.js v22.12.0 LTS or higher. ESM-only.
14 lines
371 B
TypeScript
14 lines
371 B
TypeScript
import path from 'node:path';
|
|
|
|
import { describe, expect, it } from 'vitest';
|
|
|
|
import { sha } from '../src/sha.js';
|
|
|
|
describe('sha', () => {
|
|
it('should correctly hash a file', async () => {
|
|
expect(await sha(path.resolve(import.meta.dirname, 'fixtures', 'tohash'))).toEqual(
|
|
'12998c017066eb0d2a70b94e6ed3192985855ce390f321bbdb832022888bd251',
|
|
);
|
|
});
|
|
});
|