Detect array-specific comparison functions

pull/2/head
Louis Chatriot 11 years ago
parent 8a5372f3cb
commit abc2a43d5e
  1. 2
      test/model.test.js

@ -1103,7 +1103,7 @@ describe('Model', function () {
});
it('Should throw an error if a query operator is used without being applied to an array and comparing to an integer', function () {
// model.match({ a: 5 }, { a: { $size: 1 } });
model.match({ a: 5 }, { a: { $size: 1 } });
(function () { model.match({ a: [1, 5] }, { a: { $size: 1.4 } }); }).should.throw();
(function () { model.match({ a: [1, 5] }, { a: { $size: 'fdf' } }); }).should.throw();
});

Loading…
Cancel
Save