From 618e7839a1478ea312b3966722dcfb92ba526fdf Mon Sep 17 00:00:00 2001 From: jlukic Date: Tue, 14 Apr 2015 14:18:34 -0400 Subject: [PATCH] Fix debug #2059 #2070 --- src/definitions/behaviors/api.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/definitions/behaviors/api.js b/src/definitions/behaviors/api.js index de442adba..d51a64a13 100644 --- a/src/definitions/behaviors/api.js +++ b/src/definitions/behaviors/api.js @@ -463,11 +463,11 @@ $.api = $.fn.api = function(parameters) { if( module.is.mocked() ) { if(settings.mockResponse) { if($.isFunction(settings.mockResponse)) { - module.verbose('Using sync mocked response callback', settings.mockResponse); + module.debug('Using sync mocked response callback', settings.mockResponse); module.request.resolveWith(context, [ settings.mockResponse.call(context, settings) ]); } else { - module.verbose('Using mocked response', settings.mockResponse); + module.debug('Using mocked response', settings.mockResponse); module.request.resolveWith(context, [ settings.mockResponse ]); } } @@ -476,6 +476,7 @@ $.api = $.fn.api = function(parameters) { module.verbose('Async callback returned response', response); module.request.resolveWith(context, response); }; + module.debug('Using async mocked response', settings.mockResponseAsync); settings.mockResponseAsync.call(context, settings, callback); } }