Skip to content

Commit

Permalink
Update packages/object/tests/hashgraph.test.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Jan Lewandowski <[email protected]>
  • Loading branch information
trungnotchung and JanLewDev authored Jan 3, 2025
1 parent 909bbed commit f95c7f7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/object/tests/hashgraph.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -713,12 +713,12 @@ describe("Writer permission tests", () => {
});

test("Node without writer permission can generate vertex locally", () => {
const drp2 = obj1.drp as AddWinsSetWithACL<number>;
drp2.add(1);
drp2.add(2);
const drp = obj1.drp as AddWinsSetWithACL<number>;
drp.add(1);
drp.add(2);

expect(drp2.contains(1)).toBe(true);
expect(drp2.contains(2)).toBe(true);
expect(drp.contains(1)).toBe(true);
expect(drp.contains(2)).toBe(true);
});

test("Discard vertex if creator does not have write permission", () => {
Expand Down

0 comments on commit f95c7f7

Please sign in to comment.