Skip to content

Commit

Permalink
update tests (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacqueline-57b authored Jun 21, 2024
1 parent 5891c4f commit 4469f49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 82 deletions.
36 changes: 0 additions & 36 deletions test/e2e/licenseTerms.comUsePIL.test.ts

This file was deleted.

48 changes: 2 additions & 46 deletions test/nftClient/createNFTCollection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import '../setup';
import { createNFTCollection } from '../../utils/sdkUtils';
import { accountA, mintingFeeTokenAddress } from '../../config/config';

describe("SDK Test", function () {
describe.only("SDK Test", function () {
describe("Create NFT Collection - nftClient.createNFTCollection", async function () {
it("Create NFT collection", async function () {
const response = await expect(
Expand Down Expand Up @@ -59,21 +59,7 @@ describe("SDK Test", function () {

expect(response.txHash).to.be.a("string").and.not.empty;
expect(response.nftContract).to.be.a("string").and.not.empty;
});

it.skip("Create NFT collection with mintCost and invalid mintToken", async function () {
let mintToken: any;
const options = {
maxSupply: 10n,
mintCost: 1,
mintToken: mintToken,
owner: accountA.address
};

const response = await expect(
createNFTCollection("A", "sdk-e2e-test", "test", true, options)
).to.be.rejectedWith("Failed to create a SPG NFT collection: Invalid mint token address, mint cost is greater than 0.");
});
});

it("Create NFT collection with multi undefined parameters", async function () {
let maxSupply: any;
Expand Down Expand Up @@ -106,36 +92,6 @@ describe("SDK Test", function () {
).to.be.rejectedWith("Failed to create a SPG NFT collection: Cannot convert test to a BigInt");
});

it.skip("Create NFT collection with invalid type for mintCost", async function () {
const options = {
mintCost: "test"
};

const response = await expect(
createNFTCollection("A", "sdk-e2e-test", "test", true, options)
).to.be.rejectedWith("Failed to create a SPG NFT collection: Cannot convert test to a BigInt");
});

it.skip("Create NFT collection with invalid type for mintToken", async function () {
const options = {
mintToken: "test"
};

const response = await expect(
createNFTCollection("A", "sdk-e2e-test", "test", true, options)
).to.be.rejectedWith("Failed to create a SPG NFT collection: Address \"test\" is invalid.");
});

it.skip("Create NFT collection with mintToken: 0x0000", async function () {
const options = {
mintToken: "0x0000"
};

const response = await expect(
createNFTCollection("A", "sdk-e2e-test", "test", true, options)
).to.be.rejectedWith("Failed to create a SPG NFT collection: Address \"0x0000\" is invalid.");
});

it("Create NFT collection with invalid type for owner", async function () {
const options = {
owner: "test"
Expand Down

0 comments on commit 4469f49

Please sign in to comment.