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
Now we can do
assert(visit.list().length === 2);
Would be better implement method for this case.
assert(visit.count() === 2);
And alternative for list().filter(..)
list().filter(..)
assert(visit.list().filter(x => x === 'foo').length > 0); // -> assert(visit.count(x => x === 'foo') > 0); assert(visit.count('foo') > 0); assert(visit.count({ foo: 1}) === 0);
When non-function passed to visit.count() internal compareValues() for non-strict comparison should be used.
visit.count()
compareValues()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Now we can do
Would be better implement method for this case.
And alternative for
list().filter(..)
When non-function passed to
visit.count()
internalcompareValues()
for non-strict comparison should be used.The text was updated successfully, but these errors were encountered: