Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
NFT-000: add integ test
Browse files Browse the repository at this point in the history
  • Loading branch information
sahar-fehri committed Jun 16, 2023
1 parent 7350ce7 commit b3fb1f9
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions integration-test/sdk.polygon.gasstation.test-integration.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { config as loadEnv } from 'dotenv';

import axios from 'axios';

loadEnv();

describe('E2E Test: Sdk (read)', () => {
// fix to avoid axios open handle
beforeEach(async () => {
await process.nextTick(() => {});
});

describe('It should get gas price from gasstation', () => {
it('Should resolve gassation url correctly', async () => {
const { data } = await axios({
method: 'get',
url: 'https://gasstation.polygon.technology/v2',
});
const gas = data.fast;
expect(gas).toBeDefined;
expect(gas).toMatchObject({
maxPriorityFee: expect.anything(),
maxFee: expect.anything(),
});
});
});
});

0 comments on commit b3fb1f9

Please sign in to comment.