mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 04:10:40 -07:00
Illegal expression in contains
This commit is contained in:
+3
-1
@@ -13,7 +13,8 @@ describe('expression', function() {
|
||||
scope = Scope.factory({
|
||||
one: 1,
|
||||
two: 2,
|
||||
x: 'XXX'
|
||||
x: 'XXX',
|
||||
y: undefined
|
||||
});
|
||||
});
|
||||
|
||||
@@ -25,6 +26,7 @@ describe('expression', function() {
|
||||
it('should throw on illegal expression', function() {
|
||||
expect(function() {
|
||||
evalExp('1 contains "x"', scope);
|
||||
evalExp('y contains "x"', scope);
|
||||
}).to.throw();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user