Skip to content

Commit

Permalink
test: update tests for premiumPaids fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jackmellis committed Feb 9, 2024
1 parent 0ac7c3b commit 76f369d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/core/src/pools/__tests__/fetchPremiumPaids.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { formatJson } from '@nftx/utils';
import { makeFetchPremiumPaids } from '../fetchPremiumPaids';

let queryResponse: any;
Expand Down Expand Up @@ -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',
},
Expand All @@ -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);
});
});

0 comments on commit 76f369d

Please sign in to comment.