From 25fef3a37b9cd808b9b4d6a68148dcfd50f927ba Mon Sep 17 00:00:00 2001 From: mudkip Date: Tue, 14 Feb 2017 10:12:50 +0800 Subject: [PATCH] Fix koa-hbs-tests.ts --- koa-hbs/index.d.ts | 2 +- koa-hbs/koa-hbs-tests.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/koa-hbs/index.d.ts b/koa-hbs/index.d.ts index 0b800418e7..51c609e296 100644 --- a/koa-hbs/index.d.ts +++ b/koa-hbs/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for koa-hbs v1.x // Project: https://github.com/gilt/koa-hbs -// Definitions by: Jacob Malone +// Definitions by: Jacob Malone , Mudkip // Definitions: https://github.com/jcbmln/DefinitelyTyped /* =================== USAGE =================== diff --git a/koa-hbs/koa-hbs-tests.ts b/koa-hbs/koa-hbs-tests.ts index 43c708b581..3c86a51cad 100644 --- a/koa-hbs/koa-hbs-tests.ts +++ b/koa-hbs/koa-hbs-tests.ts @@ -9,7 +9,7 @@ app.use(hbs.middleware({ })); app.use(async (ctx, next) => { - await this.render('index', { + await ctx.render('index', { title: 'Hello World!' }); });