mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 21:00:40 -07:00
refactor: strictly typed
This commit is contained in:
+2
-2
@@ -8,7 +8,7 @@ describe('express()', function () {
|
||||
const root = resolve(__dirname, '../stub/root')
|
||||
const views = resolve(__dirname, '../stub/views')
|
||||
const partials = resolve(__dirname, '../stub/partials')
|
||||
let app, engine
|
||||
let app: express.Application, engine: Liquid
|
||||
|
||||
beforeEach(function () {
|
||||
app = express()
|
||||
@@ -45,7 +45,7 @@ describe('express()', function () {
|
||||
}
|
||||
const file = '/not-exist.html'
|
||||
const ctx = {}
|
||||
engine.express().call(view, file, ctx, function (err) {
|
||||
engine.express().call(view, file, ctx, function (err: any) {
|
||||
try {
|
||||
expect(err.code).to.equal('ENOENT')
|
||||
expect(err.message).to.match(/Failed to lookup/)
|
||||
|
||||
Reference in New Issue
Block a user