We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f42cbf4 + ed61cd0 commit a2fc76cCopy full SHA for a2fc76c
1 file changed
test/utils.spec.js
@@ -80,6 +80,24 @@ describe('utils', function () {
80
});
81
82
83
+ describe('.some()', function () {
84
+ var some = utils.some;
85
+
86
+ it('should return true when some array elements pass the check of the fn parameter', function () {
87
+ var result = some(['a', 'b', 'c'], function (e) {
88
+ return e === 'b';
89
+ });
90
+ result.should.eql(true);
91
92
93
+ it('should return false when none of the array elements pass the check of the fn parameter', function () {
94
95
+ return e === 'd';
96
97
+ result.should.eql(false);
98
99
100
101
describe('.parseQuery()', function () {
102
var parseQuery = utils.parseQuery;
103
it('should get queryString and return key-value object', function () {
0 commit comments