Another test

This commit is contained in:
Slava Kim
2013-09-13 15:41:53 -07:00
parent 2642280977
commit 6c448a213f

View File

@@ -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", [