diff --git a/.gitignore b/.gitignore index 492f1bac..91a2bf95 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ flamegraph.svg target dhat-heap.json .DS_Store +node_modules/ diff --git a/crates/loro-wasm/deno_test/test.ts b/crates/loro-wasm/deno_test/test.ts index 47431845..1119188d 100644 --- a/crates/loro-wasm/deno_test/test.ts +++ b/crates/loro-wasm/deno_test/test.ts @@ -226,6 +226,8 @@ Deno.test("transaction", async () => { assertEquals(count, 0); text.insert(txn, 0, "hello world"); assertEquals(count, 0); + txn.commit(); + txn.free(); }); await one_ms(); assertEquals(count, 1); @@ -246,6 +248,8 @@ Deno.test("transaction origin", async () => { assertEquals(count, 0); text.insert(txn, 0, "hello world"); assertEquals(count, 0); + txn.commit(); + txn.free(); }); await one_ms(); assertEquals(count, 1);