Skip to content

Commit

Permalink
AssertionError: expected { '0': <BN: a>, '1': <BN: d> } to equal { Ob…
Browse files Browse the repository at this point in the history
…ject (0, 1) }
  • Loading branch information
cNoveron committed Feb 1, 2020
1 parent 7535d7f commit 635ee52
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/SportsBook.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,10 @@ contract('SportsBook', function ([
});

describe('reports the correct scores', function () {
it('calling scores() should return \'[10,13]?\'', async function () {
(await this.sportsBook.scores()).should.be.equal(new Array(10,13));
it('calling scores() should return \'{10,13} BN\'', async function () {
let { SF_score, KC_score } = await this.sportsBook.scores();
SF_score.should.be.a.bignumber.that.equals(new BN('10', 10));
KC_score.should.be.a.bignumber.that.equals(new BN('13', 10));
});
});

Expand Down

0 comments on commit 635ee52

Please sign in to comment.