Skip to content

Commit

Permalink
tests: update minter class name
Browse files Browse the repository at this point in the history
Refs: #38
  • Loading branch information
bucurdavid committed Sep 20, 2023
1 parent 0d1eed7 commit 926c41e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions tests/environment.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ApiNetworkProvider } from '@multiversx/sdk-network-providers/out';
import { DataNftMarket, DataNftMinter } from '../src/index';
import { DataNftMarket, SftMinter } from '../src/index';

describe('testing environment market', () => {
test('#devnet-default', async () => {
Expand Down Expand Up @@ -49,7 +49,7 @@ describe('testing environment market', () => {

describe('testing environment minter', () => {
test('#devnet-default', async () => {
const datanft = new DataNftMinter('devnet');
const datanft = new SftMinter('devnet');

expect(datanft.chainID).toStrictEqual('D');
expect(datanft.networkProvider).toStrictEqual(
Expand All @@ -71,7 +71,7 @@ describe('testing environment minter', () => {
});

test('#devnet-custom-timeout', async () => {
const datanft = new DataNftMinter('devnet', 5000);
const datanft = new SftMinter('devnet', 5000);

expect(datanft.chainID).toStrictEqual('D');
expect(datanft.networkProvider).toStrictEqual(
Expand All @@ -82,7 +82,7 @@ describe('testing environment minter', () => {
});

test('#mainnet-custom-timeout', async () => {
const datanft = new DataNftMinter('mainnet', 5000);
const datanft = new SftMinter('mainnet', 5000);

expect(datanft.chainID).toStrictEqual('1');
expect(datanft.networkProvider).toStrictEqual(
Expand Down
10 changes: 5 additions & 5 deletions tests/minter.test.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { Address, Transaction } from '@multiversx/sdk-core/out';
import { DataNftMinter, Minter, MinterRequirements } from '../src';
import { SftMinter, Minter, MinterRequirements } from '../src';

describe('Data Nft Minter Test', () => {
test('#getAddress', async () => {
const dataNftMarket = new DataNftMinter('devnet');
const dataNftMarket = new SftMinter('devnet');
expect(dataNftMarket.getContractAddress()).toBeInstanceOf(Address);
expect(dataNftMarket.getContractAddress().bech32()).toStrictEqual(
'erd1qqqqqqqqqqqqqpgqpd9qxrq5a03jrneafmlmckmlj5zgdj55fsxsqa7jsm'
);
});

test('#viewMinterRequirements', async () => {
const dataNftMarket = new DataNftMinter('devnet');
const dataNftMarket = new SftMinter('devnet');

const result = await dataNftMarket.viewMinterRequirements(
new Address(
Expand All @@ -22,7 +22,7 @@ describe('Data Nft Minter Test', () => {
});

test('#burn', async () => {
const dataNftMarket = new DataNftMinter('devnet');
const dataNftMarket = new SftMinter('devnet');

const result = await dataNftMarket.burn(
new Address(
Expand All @@ -35,7 +35,7 @@ describe('Data Nft Minter Test', () => {
});

test('#viewContractpauseState', async () => {
const dataNftMarket = new DataNftMinter('devnet');
const dataNftMarket = new SftMinter('devnet');

const result = await dataNftMarket.viewContractPauseState();
expect(typeof result).toBe('boolean');
Expand Down

0 comments on commit 926c41e

Please sign in to comment.