Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
eruizgar91 committed Dec 15, 2023
1 parent 5229dce commit 9bdfc81
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions integration/external/Datasets.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
AssetPrice,
NFTAttributes,
NeverminedNFT721Type,
NeverminedNFT1155Type,
} from '../../src'
import { EscrowPaymentCondition, TransferNFT721Condition, Token } from '../../src/keeper'
import { config } from '../config'
Expand Down Expand Up @@ -426,11 +425,7 @@ describe('Gate-keeping of Dataset using NFT ERC-721 End-to-End', () => {
})

it('should be able to retrieve datasets associated with a subscription filtering by tags', async () => {
const result = await nevermined.search.datasetsBySubscription(
subscriptionDDO.id,
NeverminedNFT1155Type.nft1155Credit,
tagsFilter,
)
const result = await nevermined.search.datasetsBySubscription(subscriptionDDO.id, tagsFilter)
assert.equal(result.totalResults.value, 1)

assert.isTrue(
Expand All @@ -443,11 +438,7 @@ describe('Gate-keeping of Dataset using NFT ERC-721 End-to-End', () => {
})

it('should not be able to retrieve any datasets associated with a subscription filtering by tags which do not exist', async () => {
const result = await nevermined.search.datasetsBySubscription(
subscriptionDDO.id,
NeverminedNFT1155Type.nft1155Credit,
tagsFilter2,
)
const result = await nevermined.search.datasetsBySubscription(subscriptionDDO.id, tagsFilter2)
assert.equal(result.totalResults.value, 0)
})
})
Expand Down

0 comments on commit 9bdfc81

Please sign in to comment.