We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e422a8c commit f7f0d99Copy full SHA for f7f0d99
test/main.test.js
@@ -168,6 +168,11 @@ describe("expressions", function () {
168
expect(evaluate(scope)).to.equal(undefined);
169
});
170
171
+ it("should return null instead of undefined is the data contains null", function () {
172
+ evaluate = compile("someVal");
173
+ expect(evaluate({ someVal: null })).to.equal(null);
174
+ });
175
+
176
it("should return the scope even when the 'this' keyword is used", function () {
177
evaluate = compile("this");
178
expect(evaluate(scope)).to.equal(scope);
0 commit comments