Lines Matching refs:matcher

955     assert.equal(_.matcher({hair: true})(moe), true, 'Returns a boolean');
956 assert.equal(_.matcher({hair: true})(curly), false, 'Returns a boolean');
958 assert.equal(_.matcher({__x__: void 0})(5), false, 'can match undefined props on primitives');
959 assert.equal(_.matcher({__x__: void 0})({__x__: void 0}), true, 'can match undefined props');
961 assert.equal(_.matcher({})(null), true, 'Empty spec called with null object returns true');
962 …assert.equal(_.matcher({a: 1})(null), false, 'Non-empty spec called with null object returns false…
964 …assert.strictEqual(_.find(stooges, _.matcher({hair: false})), curly, 'returns a predicate that can…
965 …assert.strictEqual(_.find(stooges, _.matcher(moe)), moe, 'can be used to locate an object exists i…
966 … assert.deepEqual(_.filter([null, void 0], _.matcher({a: 1})), [], 'Do not throw on null values.');
968 … assert.deepEqual(_.filter([null, void 0], _.matcher(null)), [null, void 0], 'null matches null');
969 assert.deepEqual(_.filter([null, void 0], _.matcher({})), [null, void 0], 'null matches {}');
970 …assert.deepEqual(_.filter([{b: 1}], _.matcher({a: void 0})), [], 'handles undefined values (1683)'…
973 assert.equal(_.matcher(item)({a: 1}), true, 'treats primitives as empty');
979 var protospec = _.matcher(specObj);
983 protospec = _.matcher(specObj);
987 …assert.ok(_.matcher({x: 1, y: 5})(specObj), 'inherited and own properties are checked on the test …
990 assert.ok(_.matcher(Prototest)({x: 5, y: 1}), 'spec can be a function');
994 var m = _.matcher(o);
1003 var oCon = _.matcher({constructor: Object});
1008 assert.strictEqual(_.matches, _.matcher, 'is an alias for matcher');