Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use browser native SHA256 when possible #1953

Merged
merged 10 commits into from
Nov 13, 2023
8 changes: 5 additions & 3 deletions packages/create-snap/src/cmds/init/initHandler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as snapUtils from '@metamask/snaps-utils';
import {
getPackageJson,
getMockSnapFiles,
getMockSnapFilesWithUpdatedChecksum,
} from '@metamask/snaps-utils/test-utils';
import * as utils from '@metamask/utils';
import { promises as fs } from 'fs';
Expand Down Expand Up @@ -132,9 +133,10 @@ describe('initialize', () => {
.mockImplementation(() => false);
jest.spyOn(initUtils, 'gitInitWithCommit').mockImplementation();

const { manifest, packageJson } = getMockSnapFiles({
packageJson: { ...getPackageJson(), main: undefined },
});
const { manifest, packageJson } =
await getMockSnapFilesWithUpdatedChecksum({
packageJson: { ...getPackageJson(), main: undefined },
});

jest
.spyOn(snapUtils, 'readJsonFile')
Expand Down
Loading