Fix koa-hbs-tests.ts

This commit is contained in:
mudkip
2017-02-14 10:12:50 +08:00
parent 9d697c95a2
commit 25fef3a37b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
// Type definitions for koa-hbs v1.x
// Project: https://github.com/gilt/koa-hbs
// Definitions by: Jacob Malone <https://github.com/jcbmln/>
// Definitions by: Jacob Malone <https://github.com/jcbmln/>, Mudkip <https://github.com/mudkipme>
// Definitions: https://github.com/jcbmln/DefinitelyTyped
/* =================== USAGE ===================
+1 -1
View File
@@ -9,7 +9,7 @@ app.use(hbs.middleware({
}));
app.use(async (ctx, next) => {
await this.render('index', {
await ctx.render('index', {
title: 'Hello World!'
});
});