Skip to content

Commit

Permalink
Not sure why, but opera is better now (including old versions). I gue…
Browse files Browse the repository at this point in the history
…ss one of the minimongo changes caused the ordering to be different.
  • Loading branch information
n1mmy committed Oct 8, 2013
1 parent 9eda3f9 commit 9f2188b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/minimongo/minimongo_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -1678,11 +1678,8 @@ Tinytest.add("minimongo - modify", function (test) {
modify({a: {b: 12}}, {$rename: {'a.b': 'x'}}, {a: {}, x: 12}); // tested
modify({a: {b: 12}}, {$rename: {'a.b': 'q.r'}}, {a: {}, q: {r: 12}});
modify({a: {b: 12}}, {$rename: {'a.b': 'q.2.r'}}, {a: {}, q: {2: {r: 12}}});
// Opera weirdly reorders the output. But what it does tends to be close
// enough.
modify({a: {b: 12}, q: {}}, {$rename: {'a.b': 'q.2.r'}},
(typeof opera === 'undefined' ? {a: {}, q: {2: {r: 12}}}
: {q: {2: {r: 12}}, a: {}}));
{a: {}, q: {2: {r: 12}}});
exception({a: {b: 12}, q: []}, {$rename: {'a.b': 'q.2'}}); // tested
exception({a: {b: 12}, q: []}, {$rename: {'a.b': 'q.2.r'}}); // tested
test.expect_fail();
Expand Down

0 comments on commit 9f2188b

Please sign in to comment.