diff --git a/packages/minimongo/minimongo_tests.js b/packages/minimongo/minimongo_tests.js index cd9868e77e..66e9b51df4 100644 --- a/packages/minimongo/minimongo_tests.js +++ b/packages/minimongo/minimongo_tests.js @@ -983,6 +983,11 @@ Tinytest.add("minimongo - projection_compiler", function (test) { [ { a: { b: 42 } }, { a: { b: 42 } }, "Can't have ambiguous rules (one is prefix of another)" ] ]); }); + test.throws(function () { + testProjection({ 'a.b.c': 1, 'a.b': 1, 'a': 1 }, [ + [ { a: { b: 42 } }, { a: { b: 42 } }, "Can't have ambiguous rules (one is prefix of another)" ] + ]); + }); test.throws(function () { testProjection("some string", [