vendredi 16 mars 2018

What is jest's substitute to chai's approximately assertion

In chai you can write the following:

expect(result.applicationDate.getTime()).to.be.approximately(expected.getTime(), 10);

What is the equivalent code in jest for this assertion

Aucun commentaire:

Enregistrer un commentaire