fix: deno tests

This commit is contained in:
Zixuan Chen 2023-03-24 11:57:28 +08:00
parent 606685d42b
commit e01b6954db
2 changed files with 5 additions and 0 deletions

1
.gitignore vendored
View file

@ -5,3 +5,4 @@ flamegraph.svg
target
dhat-heap.json
.DS_Store
node_modules/

View file

@ -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);