chore: fix linting

This commit is contained in:
harttle
2019-02-23 03:50:45 +08:00
parent 56c7992b76
commit 3cf01603e8
35 changed files with 107 additions and 110 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
import Liquid from 'src/liquid'
import { expect, use } from 'chai'
import * as chaiAsPromised from 'chai-as-promised'
import IContext from 'src/scope/icontext';
import IContext from 'src/scope/icontext'
use(chaiAsPromised)
+2 -2
View File
@@ -4,11 +4,11 @@ import { expect } from 'chai'
describe('LiquidOptions', function () {
describe('#normalize ()', function () {
it('should normalize string typed root array', function () {
const options = normalize({root: 'foo'})
const options = normalize({ root: 'foo' })
expect(options.root).to.eql(['foo'])
})
it('should normalize null typed root as empty array', function () {
const options = normalize({root: null} as any)
const options = normalize({ root: null } as any)
expect(options.root).to.eql([])
})
})
+1 -1
View File
@@ -1,6 +1,6 @@
import * as chai from 'chai'
import Scope from 'src/scope/scope'
import IContext from 'src/scope/icontext';
import IContext from 'src/scope/icontext'
const expect = chai.expect