From 410d1f4966f12973b73d3f2be36e770e2ce05c4b Mon Sep 17 00:00:00 2001 From: brettlangdon Date: Fri, 30 Aug 2013 22:21:31 -0400 Subject: [PATCH] properly name callback paramter for plugin notFound tests --- test/plugin.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/plugin.js b/test/plugin.js index a74c984..729efe7 100644 --- a/test/plugin.js +++ b/test/plugin.js @@ -102,7 +102,7 @@ suite("Plugin.on", function(){ test("on not-found should set not-found handler", function(){ var plugin = new yaps.plugin(); - var handler = function(request, server, done){}; + var handler = function(request, server, respond){}; plugin.on("not-found", handler); assert.ok(plugin.notFound); @@ -111,7 +111,7 @@ suite("Plugin.on", function(){ test("calling on not-found twice should overwrite not-found handler", function(){ var plugin = new yaps.plugin(); - var handler = function(request, server, done){}; + var handler = function(request, server, respond){}; plugin.on("not-found", false); plugin.on("not-found", handler); @@ -121,7 +121,7 @@ suite("Plugin.on", function(){ test("on 404 should set not-found handler", function(){ var plugin = new yaps.plugin(); - var handler = function(request, server, done){}; + var handler = function(request, server, respond){}; plugin.on("404", handler); assert.ok(plugin.notFound);