From 6a8e38d24c4866b8559f7116eac694fbf1da4ded Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 9 Nov 2015 16:21:27 -0500 Subject: profile html, search api --- test/lib/promise.js | 1 + 1 file changed, 1 insertion(+) (limited to 'test/lib/promise.js') diff --git a/test/lib/promise.js b/test/lib/promise.js index a3638de4..c239f306 100644 --- a/test/lib/promise.js +++ b/test/lib/promise.js @@ -1,5 +1,6 @@ module.exports = function(fn, data){ var my_cb, my_res, error_cb, my_error + data = data || {} data.success = function(res){ my_res = res if (my_cb) { -- cgit v1.2.3-70-g09d2