浏览代码

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

Jason Walton 11 年之前
父节点
当前提交
81a30511b3
共有 1 个文件被更改,包括 2 次插入1 次删除
  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 () {
 				// The $foo part is invalid and causes a throw.
 				assert.throws(function () {
+					debugger
 					Pipeline.parseCommand({pipeline: [
-						{$match: {$foo: {bar: "baz"}}}
+						{$foo: {bar: "baz"}}//} {$match: {$foo: {bar: "baz"}}}
 					]});
 				});
 			},