Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrtenz committed Nov 28, 2024
1 parent 53af120 commit a49f201
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions packages/snaps-simulation/src/simulation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,26 @@ describe('getHooks', () => {

await close();
});

it('returns the `getClientCryptography` hook', async () => {
const { snapId, close } = await getMockServer();

const location = detectSnapLocation(snapId, {
allowLocal: true,
});
const snapFiles = await fetchSnap(snapId, location);

const { getClientCryptography } = getHooks(
getMockOptions(),
snapFiles,
snapId,
controllerMessenger,
);

expect(getClientCryptography()).toStrictEqual({});

await close();
});
});

describe('registerActions', () => {
Expand Down

0 comments on commit a49f201

Please sign in to comment.