aboutsummaryrefslogtreecommitdiff
path: root/crates/chat-crypto/tests/browser.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/chat-crypto/tests/browser.mjs')
-rw-r--r--crates/chat-crypto/tests/browser.mjs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/chat-crypto/tests/browser.mjs b/crates/chat-crypto/tests/browser.mjs
index 8d2a9bb..4fd2ee5 100644
--- a/crates/chat-crypto/tests/browser.mjs
+++ b/crates/chat-crypto/tests/browser.mjs
@@ -47,7 +47,8 @@ try {
});
await page.goto(origin);
const result = await page.evaluate(async () => {
- const { runProbe } = await import('/wasi.mjs');
+ await import('/wasi.mjs');
+ const { runProbe } = globalThis.stackChatWasi;
const bytes = await (await fetch('/probe.wasm', { cache: 'no-store' })).arrayBuffer();
const valid = await runProbe(bytes);
const again = await runProbe(bytes);