From 76f369d2c764c511b9ac43dcf3c3c6a4a865601a Mon Sep 17 00:00:00 2001 From: Jack Ellis Date: Fri, 9 Feb 2024 11:58:48 +0000 Subject: [PATCH] test: update tests for premiumPaids fix --- .../core/src/pools/__tests__/fetchPremiumPaids.test.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/core/src/pools/__tests__/fetchPremiumPaids.test.ts b/packages/core/src/pools/__tests__/fetchPremiumPaids.test.ts index 0585924..3993035 100644 --- a/packages/core/src/pools/__tests__/fetchPremiumPaids.test.ts +++ b/packages/core/src/pools/__tests__/fetchPremiumPaids.test.ts @@ -1,3 +1,4 @@ +import { formatJson } from '@nftx/utils'; import { makeFetchPremiumPaids } from '../fetchPremiumPaids'; let queryResponse: any; @@ -36,11 +37,11 @@ beforeEach(() => { it('fetches premium paids', async () => { const result = await run(); - expect(result).toEqual([ + expect(formatJson(result)).toEqual([ { - amount: BigInt('100000000000000000000'), + amount: '100000000000000000000', date: 1629830400, - to: '0x0', + // to: '0x0', vaultAddress: '0x0', vaultId: '0', }, @@ -57,6 +58,6 @@ describe('when there are more than 1000 premium paids', () => { it('recusrively fetches all premium paids', async () => { const result = await run(); - expect(result).toHaveLength(1001); + expect(formatJson(result)).toHaveLength(1001); }); });