mirror of
https://github.com/zkemail/zk-regex.git
synced 2026-01-10 06:07:58 -05:00
fix: no need to init wasm
This commit is contained in:
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user