We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assume
var list = ['1', '2']
This code does not works:
should.exist(list) list.should.be.an('array') // Passed .with.length(2) // Passed .and.all.be.an('string') // Failed: expected '1' to be a string
The text was updated successfully, but these errors were encountered:
+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
Sorry, something went wrong.
With unexpected.js it should work as follows:
expect(list, 'to be an array whose items satisfy', expect.it('to be a string'))
No branches or pull requests
Assume
This code does not works:
The text was updated successfully, but these errors were encountered: