Skip to content

Commit

Permalink
refactor: nft query testcase refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
fly33499 committed Nov 8, 2021
1 parent 7685777 commit 69bb91d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sdk/firmachain/nft/NftQueryClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class NftQueryClient {
}

async queryNftItem(nftId: string): Promise<NftItemType> {
const path = `/firmachain/firmachain/nft/nftItem/${nftId}`;
const path = "/firmachain/firmachain/nft/nftItem/" + nftId;
const result = await this.axios.get(path);

return result.data.NftItem;
Expand Down
2 changes: 1 addition & 1 deletion test/11.nft_query.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { FirmaSDK } from "../sdk/FirmaSDK"
import { NftItemType } from '../sdk/firmachain/nft';
import { aliceMnemonic, bobMnemonic, TestChainConfig } from './config_test';

describe('[11. NFT Test]', () => {
describe('[11. NFT Query Test]', () => {

const firma = new FirmaSDK(TestChainConfig);

Expand Down

0 comments on commit 69bb91d

Please sign in to comment.