This commit is contained in:
harttle
2019-01-28 18:06:47 +08:00
parent 7a2e036c79
commit 8a881ac69a
41 changed files with 116 additions and 116 deletions
+3 -3
View File
@@ -31,7 +31,7 @@ describe('Liquid', function () {
})
})
describe('#express()', function () {
const liquid = new Liquid({root: '/root'})
const liquid = new Liquid({ root: '/root' })
const render = liquid.express()
before(function () {
mock({
@@ -42,14 +42,14 @@ describe('Liquid', function () {
mock.restore()
})
it('should render single template', function (done) {
render.call({root: '.'}, 'foo', null, (err, result) => {
render.call({ root: '.' }, 'foo', null, (err, result) => {
if (err) return done(err)
expect(result).to.equal('foo')
done()
})
})
it('should render single template with Array-typed root', function (done) {
render.call({root: ['.']}, 'foo', null, (err, result) => {
render.call({ root: ['.'] }, 'foo', null, (err, result) => {
if (err) return done(err)
expect(result).to.equal('foo')
done()