From e68ddc0e16b9d10148ad3de6a712a760af5cfab9 Mon Sep 17 00:00:00 2001 From: Helen Date: Sun, 12 Jan 2025 04:45:51 +0300 Subject: [PATCH 1/3] dispute.test.ts --- test/e2e/dispute.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/e2e/dispute.test.ts b/test/e2e/dispute.test.ts index 89c9978..23d1540 100644 --- a/test/e2e/dispute.test.ts +++ b/test/e2e/dispute.test.ts @@ -73,7 +73,7 @@ describe("SDK E2E Test - Dispute Module", function () { expect(response.txHash).to.be.a("string").and.not.empty; }); - it("Attach commericial remix PIL to IN_DISPUTE IP asset", async function () { + it("Attach commercial remix PIL to IN_DISPUTE IP asset", async function () { const response = await expect( attachLicenseTerms("A", ipIdA, comRemixLicenseTermsId2, waitForTransaction) ).to.not.be.rejected; @@ -101,7 +101,7 @@ describe("SDK E2E Test - Dispute Module", function () { expect(response.licenseTokenIds).to.be.a("array").and.to.have.lengthOf(2); }); - it("Mint license tokens with commericial remix PIL for IN_DISPUTE IP asset", async function () { + it("Mint license tokens with commercial remix PIL for IN_DISPUTE IP asset", async function () { const response = await expect( mintLicenseTokens("A", ipIdA, comRemixLicenseTermsId2, 2, accountB.address, waitForTransaction) ).to.not.be.rejected; @@ -143,7 +143,7 @@ describe("SDK E2E Test - Dispute Module", function () { expect(response.royaltyTokensCollected).to.be.a("bigint").and.be.equal(BigInt(commercialRevShare2 * 1000000)); }); - step("Captue snapshot", async function () { + step("Capture snapshot", async function () { const response = await expect( royaltySnapshot("A", ipIdA, waitForTransaction) ).to.not.be.rejected; @@ -664,7 +664,7 @@ describe("SDK E2E Test - Dispute Module", function () { expect(response.royaltyTokensCollected).to.be.a("bigint").and.be.equal(BigInt(commercialRevShare2 * 1000000)); }); - step("Captue snapshot", async function () { + step("Capture snapshot", async function () { const response = await expect( royaltySnapshot("B", ipIdB, waitForTransaction) ).to.not.be.rejected; From 5a0e5d7cc9714b723432fece693e17a935f62817 Mon Sep 17 00:00:00 2001 From: Helen Date: Sun, 12 Jan 2025 04:51:03 +0300 Subject: [PATCH 2/3] snapshot.test.ts --- test/royalty/snapshot.test.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/test/royalty/snapshot.test.ts b/test/royalty/snapshot.test.ts index 6061c6e..1a653dd 100644 --- a/test/royalty/snapshot.test.ts +++ b/test/royalty/snapshot.test.ts @@ -70,7 +70,7 @@ describe("SDK Test", function () { ipIdC = responseRegisterIpAssetC.ipId; }); - it("Captue snapshot fail as undefined ipId", async function () { + it("Capture snapshot fail as undefined ipId", async function () { let ipIdA: any; const response = await expect( royaltySnapshot("A", ipIdA, waitForTransaction) @@ -78,21 +78,21 @@ describe("SDK Test", function () { }); - it("Captue snapshot fail as invalid ipId", async function () { + it("Capture snapshot fail as invalid ipId", async function () { const response = await expect( royaltySnapshot("A", "0x0000", waitForTransaction) ).to.be.rejectedWith(`Failed to snapshot: request.royaltyVaultIpId address is invalid: 0x0000, Address must be a hex value of 20 bytes (40 hex characters) and match its checksum counterpart.`); }); - it("Captue snapshot fail as non-existent ipId", async function () { + it("Capture snapshot fail as non-existent ipId", async function () { let ipIdA: any; const response = await expect( royaltySnapshot("A", "0x7F51F6AC36B5d618545345baDbe22E40ed113e2a", waitForTransaction) ).to.be.rejectedWith("Failed to snapshot: The royalty vault IP with id 0x7f51f6AC36B5D618545345badBe22e40eD113e2A is not registered."); }); - it("Captue snapshot by non-owner", async function () { + it("Capture snapshot by non-owner", async function () { const response = await expect( royaltySnapshot("B", ipIdA, true) ).to.not.be.rejected; @@ -101,13 +101,13 @@ describe("SDK Test", function () { expect(response.snapshotId).to.be.a("bigint").and.to.be.ok; }); - it("Captue snapshot for no valut account", async function () { + it("Capture snapshot for no valut account", async function () { const response = await expect( royaltySnapshot("C", ipIdC, true) ).to.be.rejectedWith("Failed to snapshot: The contract function \"snapshot\" returned no data (\"0x\")."); }); - it("Captue snapshot with waitForTransaction: true", async function () { + it("Capture snapshot with waitForTransaction: true", async function () { await sleep(20); const response = await expect( royaltySnapshot("C", ipIdB, true) @@ -117,7 +117,7 @@ describe("SDK Test", function () { expect(response.snapshotId).to.be.a("bigint").and.to.be.ok; }); - it("Captue snapshot with waitForTransaction: false", async function () { + it("Capture snapshot with waitForTransaction: false", async function () { const response = await expect( royaltySnapshot("A", ipIdA, false) ).to.not.be.rejected; @@ -126,7 +126,7 @@ describe("SDK Test", function () { expect(response.snapshotId).to.not.be.exist; }); - it("Captue snapshot with waitForTransaction: undefined", async function () { + it("Capture snapshot with waitForTransaction: undefined", async function () { await sleep(10); let waitForTransaction: any; const response = await expect( @@ -137,4 +137,4 @@ describe("SDK Test", function () { expect(response.snapshotId).to.not.be.exist; }); }); -}); \ No newline at end of file +}); From b762548451ed4ccab048b0a58f1be4d9ee242f34 Mon Sep 17 00:00:00 2001 From: Helen Date: Sun, 12 Jan 2025 04:55:27 +0300 Subject: [PATCH 3/3] multiLIcenseTerms.test.ts --- test/e2e/multiLIcenseTerms.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/multiLIcenseTerms.test.ts b/test/e2e/multiLIcenseTerms.test.ts index 5dba1cf..8ab5a44 100644 --- a/test/e2e/multiLIcenseTerms.test.ts +++ b/test/e2e/multiLIcenseTerms.test.ts @@ -197,7 +197,7 @@ describe("SDK E2E Test - Register Derivative IP Asset with multiple PILs", funct }); }); - describe("Register a derivative IP asset, parent IP asset with multiple non-commericial and commercial PILs", async function () { + describe("Register a derivative IP asset, parent IP asset with multiple non-commercial and commercial PILs", async function () { step("Mint a NFT to Wallet A and get a tokenId (tokenIdA)", async function () { tokenIdA = await mintNFTWithRetry(privateKeyA); expect(tokenIdA).not.empty; @@ -282,4 +282,4 @@ describe("SDK E2E Test - Register Derivative IP Asset with multiple PILs", funct "Error: LicensingModule__LicenseNotCompatibleForDerivative"); }); }); -}); \ No newline at end of file +});