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({