Answer the question
In order to leave comments, you need to log in
How to check variable types in should.js/chai?
Good afternoon!
How to check a variable for types in chai expect/should syntax. It can be either an object or an array. How can this be described?
/** пробовал так */
expect(res.data).to.be.a('object').or.a('array');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question