Browse Source

Add a fail test case (#2712)

Phan An 10 years ago
parent
commit
00dc106f7d
1 changed files with 6 additions and 0 deletions
  1. 6 0
      test/unit/specs/parsers/expression_spec.js

+ 6 - 0
test/unit/specs/parsers/expression_spec.js

@@ -218,6 +218,12 @@ var testCases = [
     expected: true,
     expected: true,
     paths: []
     paths: []
   },
   },
+  {
+    exp: 'null',
+    scope: {},
+    expected: null,
+    paths: []
+  },
   {
   {
     // Date global
     // Date global
     exp: 'Date.now() > new Date("2000-01-01")',
     exp: 'Date.now() > new Date("2000-01-01")',