From e01b6954dbc56f378df74117c591d722f3b4de49 Mon Sep 17 00:00:00 2001 From: Zixuan Chen Date: Fri, 24 Mar 2023 11:57:28 +0800 Subject: [PATCH] fix: deno tests --- .gitignore | 1 + crates/loro-wasm/deno_test/test.ts | 4 ++++ 2 files changed, 5 insertions(+) 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);