Skip to content

Commit

Permalink
test: clone case
Browse files Browse the repository at this point in the history
  • Loading branch information
homura committed Oct 22, 2024
1 parent 0d96417 commit c56389a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/core/src/ckb/base.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,7 @@ test("base", () => {
expect(script2.hash()).toMatch(/^0x/);

expect(bytesEqual(script1.toBytes(), script2.toBytes())).toBe(true);

expect(script1.clone()).toEqual(script1);
expect(script1.clone()).not.toBe(script1);
});

0 comments on commit c56389a

Please sign in to comment.