I am trying to check a function of a smart contract using chai and I get the following error.
Why is that happening?
The testing code is:
expect(await this.dataRestrictions.getUsersIAllowToQueryMe()).to.have.members([this.acc2_id, this.acc3_id, this.acc4_id]);
It also failed
expect(await this.dataRestrictions.getUsersIAllowToQueryMe()).to.have.members([this.acc2_id, this.acc3_id, this.acc4_id]);
With a similar error code
getUsersIAllowToQueryMe: returns an array of BN
this.acc*_id is a big number.
Why does it not pass both expect and actual?
Aucun commentaire:
Enregistrer un commentaire