Browse Source

EAGLESIX-3087: Changed a test case to check that bad parse throws error.

Jason Walton 11 years ago
parent
commit
81a30511b3
1 changed files with 2 additions and 1 deletions
  1. 2 1
      test/lib/pipeline/Pipeline.js

+ 2 - 1
test/lib/pipeline/Pipeline.js

@@ -188,8 +188,9 @@ module.exports = {
 			"should catch parse errors": function () {
 			"should catch parse errors": function () {
 				// The $foo part is invalid and causes a throw.
 				// The $foo part is invalid and causes a throw.
 				assert.throws(function () {
 				assert.throws(function () {
+					debugger
 					Pipeline.parseCommand({pipeline: [
 					Pipeline.parseCommand({pipeline: [
-						{$match: {$foo: {bar: "baz"}}}
+						{$foo: {bar: "baz"}}//} {$match: {$foo: {bar: "baz"}}}
 					]});
 					]});
 				});
 				});
 			},
 			},