mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Check the equality with _.isEqual
EJSON.stringify doesn't guarantee the order of keys.
This commit is contained in:
@@ -898,7 +898,7 @@ Tinytest.add("minimongo - projection_compiler", function (test) {
|
||||
var testProjection = function (projection, tests) {
|
||||
var projection_f = LocalCollection._compileProjection(projection);
|
||||
var equalNonStrict = function (a, b, desc) {
|
||||
test.equal(EJSON.stringify(a), EJSON.stringify(b), desc);
|
||||
test.isTrue(_.isEqual(a, b), desc);
|
||||
};
|
||||
|
||||
_.each(tests, function (testCase) {
|
||||
@@ -1101,7 +1101,7 @@ Tinytest.add("minimongo - fetch with projection, subarrays", function (test) {
|
||||
});
|
||||
|
||||
var equalNonStrict = function (a, b, desc) {
|
||||
test.equal(EJSON.stringify(a), EJSON.stringify(b), desc);
|
||||
test.isTrue(_.isEqual(a, b), desc);
|
||||
};
|
||||
|
||||
var testForProjection = function (projection, expected) {
|
||||
|
||||
Reference in New Issue
Block a user