Skip to content

Commit

Permalink
test: fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mloweedgar committed Jan 25, 2022
1 parent 180b849 commit cb7f690
Show file tree
Hide file tree
Showing 2 changed files with 245 additions and 243 deletions.
5 changes: 3 additions & 2 deletions __tests__/api-tests/earnings-api.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ describe('Earnings API tests.', () => {
if (err) return done(err);
expect(res.body).to.have.keys(['earnings', 'links', 'totalCount']);
expect(res.body.links).to.have.keys(['prev', 'next']);
expect(res.body.totalCount).to.eq(11);
expect(res.body.totalCount).to.eq(12);

// test if surveys were added successfully
const earnings = new GenericObject(earningsOne);
Expand All @@ -441,6 +441,7 @@ describe('Earnings API tests.', () => {
'id',
'grower',
'funder',
'phone',
'worker_id',
'funder_id',
'amount',
Expand Down Expand Up @@ -484,7 +485,7 @@ describe('Earnings API tests.', () => {
if (err) return done(err);
expect(res.body).to.have.keys(['earnings', 'links', 'totalCount']);
expect(res.body.links).to.have.keys(['prev', 'next']);
expect(res.body.totalCount).to.eq(5);
expect(res.body.totalCount).to.eq(7);
return done();
});
});
Expand Down
Loading

0 comments on commit cb7f690

Please sign in to comment.