From d9e8bb711e1e37536c98bb88237a46a1527b4b2a Mon Sep 17 00:00:00 2001 From: TJ Holowaychuk Date: Sun, 18 Aug 2013 11:16:02 -0700 Subject: [PATCH] misc --- test/application.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/application.js b/test/application.js index e07faf9..3e4d68b 100644 --- a/test/application.js +++ b/test/application.js @@ -254,9 +254,10 @@ describe('app.respond', function(){ }) }) -describe('app.context', function(){ +describe('app.context(obj)', function(){ it('should merge regular object properties', function(done){ var app = koa(); + app.context({ a: 1, b: 2 @@ -280,10 +281,12 @@ describe('app.context', function(){ it('should merge accessor properties', function(done){ var app = koa(); + app.context({ get something() { return this._something || 'hi'; }, + set something(value) { this._something = value; } @@ -308,9 +311,11 @@ describe('app.context', function(){ it('should merge multiple objects', function(done){ var app = koa(); + app.context({ a: 1 }); + app.context({ b: 2 });