From c56389a036801d16d73638369fbcb44bbdfcc3dd Mon Sep 17 00:00:00 2001 From: homura Date: Tue, 22 Oct 2024 12:09:30 +0900 Subject: [PATCH] test: clone case --- packages/core/src/ckb/base.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/core/src/ckb/base.test.ts b/packages/core/src/ckb/base.test.ts index 65af84d4..14fd3570 100644 --- a/packages/core/src/ckb/base.test.ts +++ b/packages/core/src/ckb/base.test.ts @@ -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); });