From 6c448a213f3b222d41420a1fe331b58f421decb1 Mon Sep 17 00:00:00 2001 From: Slava Kim Date: Fri, 13 Sep 2013 15:41:53 -0700 Subject: [PATCH] Another test --- packages/minimongo/minimongo_tests.js | 5 +++++ 1 file changed, 5 insertions(+) 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", [