Open hellboy81 opened 9 years ago
+1
var a = [{id:1}, {id:2}];
expect(a[0]).property("id").is.a("number"); //works
expect(a).all.property("id").is.a("number"); //fails
With unexpected.js it should work as follows:
expect(list, 'to be an array whose items satisfy', expect.it('to be a string'))
Assume
This code does not works: