fix: no need to init wasm

This commit is contained in:
Dimitri
2024-10-21 16:54:09 +07:00
parent 38cb9c4097
commit fc072a6930

View File

@@ -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: [