Skip to content

Commit

Permalink
added test for matching
Browse files Browse the repository at this point in the history
  • Loading branch information
crcn committed Dec 22, 2018
1 parent 9bba398 commit 231f292
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/operations-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,13 @@ describe(__filename + "#", function() {
[{ a: 1 }, { a: 5 }]
],

// based on https://github.com/crcn/sift.js/issues/146
[
{ "formData.kg": { $exists: true } },
[{ formData: { kg: null } }, { a: 1 }],
[{ formData: { kg: null } }]
],

// $in
// TODO - {$in:[Date]} doesn't work - make it work?
[{ $in: [0, false, 1, "1"] }, [0, 1, 2, 3, 4, false], [0, 1, false]],
Expand Down

0 comments on commit 231f292

Please sign in to comment.