Skip to content

Commit f7f0d99

Browse files
committed
Update tests
1 parent e422a8c commit f7f0d99

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/main.test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,11 @@ describe("expressions", function () {
168168
expect(evaluate(scope)).to.equal(undefined);
169169
});
170170

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+
171176
it("should return the scope even when the 'this' keyword is used", function () {
172177
evaluate = compile("this");
173178
expect(evaluate(scope)).to.equal(scope);

0 commit comments

Comments
 (0)