samedi 28 mars 2020

chai js oneOf / justify message not clear

I want to test with multiple correct answers, I tried both oneOf and satisfy, but the error message is like 'expected X to be one of [ Array(2) ] ' or 'expected X to satisfy function () => {}'

I want the message to include the real values, not 'Array' or 'function'.

how can I make it?

is there any option to include custom message with all this values or another solution?

thanks!

Aucun commentaire:

Enregistrer un commentaire