mirror of
https://github.com/loro-dev/loro.git
synced 2025-01-22 21:07:43 +00:00
fix: deno tests
This commit is contained in:
parent
606685d42b
commit
e01b6954db
2 changed files with 5 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -5,3 +5,4 @@ flamegraph.svg
|
||||||
target
|
target
|
||||||
dhat-heap.json
|
dhat-heap.json
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
node_modules/
|
||||||
|
|
|
@ -226,6 +226,8 @@ Deno.test("transaction", async () => {
|
||||||
assertEquals(count, 0);
|
assertEquals(count, 0);
|
||||||
text.insert(txn, 0, "hello world");
|
text.insert(txn, 0, "hello world");
|
||||||
assertEquals(count, 0);
|
assertEquals(count, 0);
|
||||||
|
txn.commit();
|
||||||
|
txn.free();
|
||||||
});
|
});
|
||||||
await one_ms();
|
await one_ms();
|
||||||
assertEquals(count, 1);
|
assertEquals(count, 1);
|
||||||
|
@ -246,6 +248,8 @@ Deno.test("transaction origin", async () => {
|
||||||
assertEquals(count, 0);
|
assertEquals(count, 0);
|
||||||
text.insert(txn, 0, "hello world");
|
text.insert(txn, 0, "hello world");
|
||||||
assertEquals(count, 0);
|
assertEquals(count, 0);
|
||||||
|
txn.commit();
|
||||||
|
txn.free();
|
||||||
});
|
});
|
||||||
await one_ms();
|
await one_ms();
|
||||||
assertEquals(count, 1);
|
assertEquals(count, 1);
|
||||||
|
|
Loading…
Reference in a new issue