I'm writing some tests with chai and chai-as-promised (and more frameworks, but it doesn't matter in this case) and I need to check if array I get from a web-page is same as a predefined array. I tried to use
It's not entirely clear from the documentation, but
.to.have.all.members seems to work. I could only find a mention of this feature for
.keys, but looks like it also works for
.members with arrays.