H
H
HoHsi2016-03-07 18:33:16
Node.js
HoHsi, 2016-03-07 18:33:16

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 question

Ask a Question

731 491 924 answers to any question