Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jacqueline-57b committed Jun 14, 2024
1 parent d53161d commit e4a35bf
Showing 1 changed file with 42 additions and 42 deletions.
84 changes: 42 additions & 42 deletions test/nftClient/createNFTCollection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,19 @@ describe("SDK Test", function () {
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.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,35 +106,35 @@ 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.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 = {
Expand Down

0 comments on commit e4a35bf

Please sign in to comment.