mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-18 22:10:41 -07:00
use isTruthy for and/or operators, fixes #47
This commit is contained in:
+3
-7
@@ -70,13 +70,9 @@ describe('liquid', function () {
|
||||
it('should render template multiple times', function () {
|
||||
var template = engine.parse('{{obj}}')
|
||||
return engine.render(template, ctx)
|
||||
.then((result) => {
|
||||
expect(result).to.equal('{"foo":"bar"}')
|
||||
return engine.render(template, ctx)
|
||||
})
|
||||
.then((result) => {
|
||||
return expect(result).to.equal('{"foo":"bar"}')
|
||||
})
|
||||
.then(result => expect(result).to.equal('{"foo":"bar"}'))
|
||||
.then(() => engine.render(template, ctx))
|
||||
.then((result) => expect(result).to.equal('{"foo":"bar"}'))
|
||||
})
|
||||
it('should render filters', function () {
|
||||
var template = engine.parse('<p>{{arr | join: "_"}}</p>')
|
||||
|
||||
Reference in New Issue
Block a user