Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
Review fix; removed unnecessary mock
Browse files Browse the repository at this point in the history
Signed-off-by: Bartosz Solka <[email protected]>
  • Loading branch information
BartoszSolkaArianelabs committed Feb 8, 2024
1 parent 2b4a133 commit b66da3e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions test/__mocks__/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ export const JSON_METADATA_UNIT_TESTS_OUTPUT_NEW_METADATA_FOLDER_PATH =
'test/unit/output/newMetadata';

export const LONG_E2E_TIMEOUT = 25000;
export const MIRROR_NODE_DELAY = 5000;
4 changes: 2 additions & 2 deletions test/e2e/increaseNFTSupplyFunctionE2E.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { NftId, PrivateKey, TokenId, TokenNftInfoQuery } from '@hashgraph/sdk';
import { nftSDK, operatorPrivateKey } from './e2eConsts';
import { LONG_E2E_TIMEOUT } from '../__mocks__/consts';
import { LONG_E2E_TIMEOUT, MIRROR_NODE_DELAY } from '../__mocks__/consts';

afterAll(async () => {
nftSDK.client.close();
Expand Down Expand Up @@ -28,7 +28,7 @@ describe('increaseNFTSupply function e2e', () => {
.execute(nftSDK.client);

//wait for the collection and nfts to be available on mirror node
await new Promise((r) => setTimeout(r, 5000));
await new Promise((r) => setTimeout(r, MIRROR_NODE_DELAY));

const increaseSupplyResult = await nftSDK.increaseNFTSupply({
nftId: nftInfo[0].nftId,
Expand Down
4 changes: 2 additions & 2 deletions test/unit/increaseNFTSupply.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Client, PrivateKey, TokenId } from '@hashgraph/sdk';
import axios from 'axios';
import { increaseNFTSupply } from '../../src/functions/increaseNFTSupply';
import { IncreaseNFTSupplyType } from '../../src/types/mintToken';
import { Client, LedgerId, PrivateKey, TokenId } from '@hashgraph/sdk';
import { validatePropsForIncreaseNFTSupply } from '../../src/utils/validateProps';


Expand Down Expand Up @@ -38,7 +38,7 @@ describe('increaseNFTSupply', () => {

const generatedSupplyKey = PrivateKey.generate();
const mockIncreaseNFTSupplyType: IncreaseNFTSupplyType = {
client: { ledgerId: LedgerId.TESTNET } as Client,
client: {} as Client,
network: 'testnet',
nftId: mockNftId,
amount: 10,
Expand Down

0 comments on commit b66da3e

Please sign in to comment.