Skip to content

Commit

Permalink
fix: nft1155 test
Browse files Browse the repository at this point in the history
  • Loading branch information
eruizgar91 committed Oct 5, 2023
1 parent fb540a1 commit 7ae842e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions integration/external/Services_NFT1155.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
AssetPrice,
NFTAttributes,
ResourceAuthentication,
NeverminedNFT1155Type,
} from '../../src'
import {
EscrowPaymentCondition,
Expand Down Expand Up @@ -498,7 +499,10 @@ describe('Gate-keeping of Web Services using NFT ERC-1155 End-to-End', () => {
]

it('should be able to retrieve the subscriptionDDO by contractAddress', async () => {
const result = await nevermined.search.bySubscriptionContractAddress(subscriptionNFT.address)
const result = await nevermined.search.bySubscriptionContractAddress(
subscriptionNFT.address,
NeverminedNFT1155Type.nft1155Credit,
)
assert.equal(result.totalResults.value, 1)
})

Expand All @@ -511,7 +515,11 @@ describe('Gate-keeping of Web Services using NFT ERC-1155 End-to-End', () => {
})

it('should be able to retrieve subscriptions purchased', async () => {
const result = await nevermined.search.subscriptionsPurchased(subscriber, 1155)
const result = await nevermined.search.subscriptionsPurchased(
subscriber,
NeverminedNFT1155Type.nft1155Credit,
1155,
)
assert.isAbove(result.totalResults.value, 1)

const dids = result.results.map((ddo) => ddo.id)
Expand Down

0 comments on commit 7ae842e

Please sign in to comment.