Skip to content

Commit

Permalink
cell: test that version doesn't update when isEqual
Browse files Browse the repository at this point in the history
  • Loading branch information
hbbio committed May 26, 2024
1 parent 3588dc5 commit 62b7c59
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/version.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ test("version for ValueCell promise", async () => {
expect(a.version).toBe(1);
});

test("version doesn't update when isEqual", () => {
const proxy = new Sheet(isEqual).newProxy();
const a = proxy.new(1);
expect(a.version).toBe(1);
a.set(1);
expect(a.version).toBe(1);
});

test("version for MapCell", async () => {
const proxy = new Sheet(isEqual).newProxy();
const a = proxy.new(1);
Expand Down

0 comments on commit 62b7c59

Please sign in to comment.