From ef883b6a6594b1c20d1433cdf29ac8248c00c3f6 Mon Sep 17 00:00:00 2001 From: bpolania Date: Fri, 6 Dec 2024 01:46:09 -0800 Subject: [PATCH] Debug --- packages/core-sdk/test/integration/royalty.test.ts | 1 - packages/core-sdk/test/unit/resources/dispute.test.ts | 8 +++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/core-sdk/test/integration/royalty.test.ts b/packages/core-sdk/test/integration/royalty.test.ts index 1de96486..92bd7554 100644 --- a/packages/core-sdk/test/integration/royalty.test.ts +++ b/packages/core-sdk/test/integration/royalty.test.ts @@ -112,7 +112,6 @@ describe("Test royalty Functions", () => { }); await transferToken(); }); - it("should not throw error when pay royalty on behalf", async () => { const response = await client.royalty.payRoyaltyOnBehalf({ receiverIpId: parentIpId, diff --git a/packages/core-sdk/test/unit/resources/dispute.test.ts b/packages/core-sdk/test/unit/resources/dispute.test.ts index 082e3e84..20efe499 100644 --- a/packages/core-sdk/test/unit/resources/dispute.test.ts +++ b/packages/core-sdk/test/unit/resources/dispute.test.ts @@ -17,9 +17,6 @@ describe("Test DisputeClient", () => { rpcMock = createMock(); walletMock = createMock(); disputeClient = new DisputeClient(rpcMock, walletMock); - if (!process.env.WALLET_PRIVATE_KEY) { - throw new Error("WALLET_PRIVATE_KEY environment variable is not set."); - } }); afterEach(() => { @@ -27,6 +24,11 @@ describe("Test DisputeClient", () => { }); describe("Test raiseDispute", () => { + it("should have a private key", () => { + if (!process.env.WALLET_PRIVATE_KEY) { + throw new Error("WALLET_PRIVATE_KEY environment variable is not set."); + } + }); it("throw address error when call raiseDispute with invalid targetIpId", async () => { try { await disputeClient.raiseDispute({