Skip to content

Commit

Permalink
fix: no need to init wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
DimiDumo committed Oct 21, 2024
1 parent 38cb9c4 commit fc072a6
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions packages/apis/tests/extract_substr.test.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
import init, { extractSubstrIdxes, extractSubstr } from '../pkg/zk_regex_apis';
import { extractSubstrIdxes, extractSubstr } from '../pkg/zk_regex_apis';
import airbnbEml from './airbnb_eml';

console.time('wasm init');
init()
.then(() => {
console.timeEnd('wasm init');
})
.catch(console.error);

describe('Extract substr test suite', async () => {
// Wait for wasm to init
await new Promise(r => setTimeout(r, 300));

test('Should extract indicies from object input', () => {
const parts = {
parts: [
Expand Down

0 comments on commit fc072a6

Please sign in to comment.