We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84a7f3f commit 3cb4c63Copy full SHA for 3cb4c63
test/testUtils.js
@@ -1,13 +1,13 @@
1
var should = require('should');
2
should.Assertion.add('haveSameItems', function(other) {
3
- this.params = { operator: 'to be have same items' };
+ this.params = { operator: 'to be have same items' };
4
5
- this.obj.forEach(item => {
+ this.obj.forEach(item => {
6
//both arrays should at least contain the same items
7
- other.should.containEql(item);
8
- });
9
- // both arrays need to have the same number of items
10
- this.obj.length.should.be.equal(other.length);
+ other.should.containEql(item);
+ });
+ // both arrays need to have the same number of items
+ this.obj.length.should.be.equal(other.length);
11
});
12
13
if (typeof String.prototype.startsWith != 'function') {
0 commit comments