Skip to content

Commit

Permalink
add tests for fetching price method (check status)
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosQ96 committed Feb 6, 2024
1 parent 04d2ba6 commit ce8cb35
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/services/mpEthPriceService.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { assert, expect } from 'chai';
import { fetchMpEthPrice } from './mpEthPriceService';

describe('fetchMpEthPrice test cases', fetchMpEthPriceTestCases);

function fetchMpEthPriceTestCases() {
it('should fetch the price from velodrome subgraph for mpeth', async () => {
const mpEthPrice = await fetchMpEthPrice();
assert.isOk(mpEthPrice);
expect(mpEthPrice).to.gt(0);
});
}

0 comments on commit ce8cb35

Please sign in to comment.