From 46f8d49e4c59e3825c8ce8b9b9f5a6dcb72c1408 Mon Sep 17 00:00:00 2001 From: Tejas Manohar Date: Tue, 13 Oct 2015 01:43:23 -0500 Subject: [PATCH] no more exports! only module.exports --- test/helpers/context.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/helpers/context.js b/test/helpers/context.js index f4a9e77..6797ecc 100644 --- a/test/helpers/context.js +++ b/test/helpers/context.js @@ -4,7 +4,7 @@ const Stream = require('stream'); const koa = require('../..'); -exports = module.exports = function(req, res){ +module.exports = function(req, res){ const socket = new Stream.Duplex(); req = req || { headers: {}, socket: socket, __proto__: Stream.Readable.prototype }; res = res || { _headers: {}, socket: socket, __proto__: Stream.Writable.prototype }; @@ -14,10 +14,10 @@ exports = module.exports = function(req, res){ return koa().createContext(req, res); } -exports.request = function(req, res){ - return exports(req, res).request; +module.exports.request = function(req, res){ + return module.exports(req, res).request; } -exports.response = function(req, res){ - return exports(req, res).response; +module.exports.response = function(req, res){ + return module.exports(req, res).response; }