Skip to content

Commit

Permalink
fix maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
charlielye committed Dec 8, 2023
1 parent 00b40aa commit 3e42c28
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions yarn-project/end-to-end/src/shared/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,8 @@ export const browserTestSuite = (setup: () => Server, pageLogger: AztecJs.DebugL
});

it('Loads Aztec.js in the browser', async () => {
const generatePublicKeyExists = await page.evaluate(async () => {
const { generatePublicKey, init } = window.AztecJs;
await init();
const generatePublicKeyExists = await page.evaluate(() => {
const { generatePublicKey } = window.AztecJs;
return typeof generatePublicKey === 'function';
});
expect(generatePublicKeyExists).toBe(true);
Expand Down

0 comments on commit 3e42c28

Please sign in to comment.