Skip to content

Commit

Permalink
fix: test file
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmahidalgo committed Aug 8, 2024
1 parent 69e7fa8 commit d983f62
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/tests/ports/nfts.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,17 +192,17 @@ describe('when fetching emotes', () => {
})

it('should return the converted fragment of nfts', async () => {
const fetchQuery = getFetchQuery(
const variableQuery = getQueryVariables(
filters,
getCollectionsOrderBy
)
const fetchQuery = getFetchQuery(
variableQuery,
collectionsFragment,
getCollectionsFragment,
getCollectionsExtraVariables,
getCollectionsExtraWhere
)
const variableQuery = getQueryVariables(
filters,
getCollectionsOrderBy
)
expect(collectionsNFTsMock.fetch(filters)).resolves.toEqual(
nftFragments.map((f) => fromCollectionsFragment(f))
)
Expand All @@ -222,17 +222,17 @@ describe('when fetching emotes', () => {
})

it('should return the converted fragment of nfts', () => {
const fetchQuery = getFetchQuery(
const variableQuery = getQueryVariables(
filters,
getCollectionsOrderBy
)
const fetchQuery = getFetchQuery(
variableQuery,
collectionsFragment,
getCollectionsFragment,
getCollectionsExtraVariables,
getCollectionsExtraWhere
)
const variableQuery = getQueryVariables(
filters,
getCollectionsOrderBy
)
expect(collectionsNFTsMock.fetch(filters)).resolves.toEqual(
nftFragments.map((f) => fromCollectionsFragment(f))
)
Expand Down Expand Up @@ -304,16 +304,16 @@ describe('when fetching nfts', () => {
})

it('should fetch the banned names and filter the query based on them', async () => {
const variableQuery = getQueryVariables(filters, getCollectionsOrderBy)
const fetchQuery = getFetchQuery(
filters,
variableQuery,
collectionsFragment,
getCollectionsFragment,
getCollectionsExtraVariables,
getCollectionsExtraWhere,
false,
bannedNames
)
const variableQuery = getQueryVariables(filters, getCollectionsOrderBy)
const result = await collectionsNFTsMock.fetch(filters)
expect(result).toEqual(
nftFragments.map((f) => fromCollectionsFragment(f))
Expand Down

0 comments on commit d983f62

Please sign in to comment.