From 5ddd8d958686c5075b6c58b700f19b4bdea90e1d Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Wed, 18 Aug 2010 16:23:12 -0700 Subject: stringify names for better compression, remove dead functions, removed underscore.js compatibility --- test/servicesSpec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/servicesSpec.js') diff --git a/test/servicesSpec.js b/test/servicesSpec.js index ffd01267..062ba8af 100644 --- a/test/servicesSpec.js +++ b/test/servicesSpec.js @@ -247,7 +247,7 @@ describe("service", function(){ scope.$xhr('POST', '/req', 'MyData', callback); xhr.flush(); var cb = $xhrError.mostRecentCall.args[0].callback; - expect(typeof cb).toEqual('function'); + expect(typeof cb).toEqual($function); expect($xhrError).wasCalledWith( {url:'/req', method:'POST', data:'MyData', callback:cb}, {status:500, body:'MyError'}); @@ -297,7 +297,7 @@ describe("service", function(){ expect($xhrError).wasCalled(); var cb = $xhrError.mostRecentCall.args[0].callback; - expect(typeof cb).toEqual('function'); + expect(typeof cb).toEqual($function); expect($xhrError).wasCalledWith( {url:'/req1', method:'GET', data:null, callback:cb}, {status:404, response:'NotFound'}); -- cgit v1.2.3