mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 12:50:38 -07:00
style: align to [email protected].1
This commit is contained in:
@@ -29,7 +29,7 @@ describe('#renderFile()', function () {
|
||||
.to.eventually.equal('foo')
|
||||
})
|
||||
it('should find files without extname', function () {
|
||||
var engine = Liquid({root: '/root'})
|
||||
var engine = Liquid({ root: '/root' })
|
||||
return expect(engine.renderFile('/root/files/bar', {}))
|
||||
.to.eventually.equal('bar')
|
||||
})
|
||||
@@ -57,11 +57,11 @@ describe('#renderFile()', function () {
|
||||
.to.eventually.equal('FOO')
|
||||
})
|
||||
it('should render file with context', function () {
|
||||
return expect(engine.renderFile('/root/files/name.html', {name: 'harttle'}))
|
||||
return expect(engine.renderFile('/root/files/name.html', { name: 'harttle' }))
|
||||
.to.eventually.equal('My name is harttle.')
|
||||
})
|
||||
it('should use default extname', function () {
|
||||
return expect(engine.renderFile('files/name', {name: 'harttle'})).to.eventually.equal('My name is harttle.')
|
||||
return expect(engine.renderFile('files/name', { name: 'harttle' })).to.eventually.equal('My name is harttle.')
|
||||
})
|
||||
it('should throw with lookup list when file not exist', function () {
|
||||
engine = Liquid({
|
||||
|
||||
Reference in New Issue
Block a user