* test: add explicit imports for `jest` functions * add workaround for non-`.spec.ts` file
13 lines
364 B
TypeScript
13 lines
364 B
TypeScript
import * as path from 'path';
|
|
|
|
import { sha } from '../src/sha';
|
|
import { describe, expect, it } from '@jest/globals';
|
|
|
|
describe('sha', () => {
|
|
it('should correctly hash a file', async () => {
|
|
expect(await sha(path.resolve(__dirname, 'fixtures', 'tohash'))).toEqual(
|
|
'12998c017066eb0d2a70b94e6ed3192985855ce390f321bbdb832022888bd251',
|
|
);
|
|
});
|
|
});
|