aboutsummaryrefslogtreecommitdiffstats
path: root/test/service
diff options
context:
space:
mode:
authorIgor Minar2011-08-05 16:24:12 -0700
committerIgor Minar2011-08-06 01:54:06 -0700
commit06835a462afc7105532e13abdd5217314b3ae71e (patch)
treeeef3f670482fb1061f99ce12228f687051cca1c5 /test/service
parent142cffcf64d2dce93089e9a73257bddf50e96990 (diff)
downloadangular.js-06835a462afc7105532e13abdd5217314b3ae71e.tar.bz2
style($function): replace $function with 'function'
Diffstat (limited to 'test/service')
-rw-r--r--test/service/xhr.bulkSpec.js2
-rw-r--r--test/service/xhr.errorSpec.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/service/xhr.bulkSpec.js b/test/service/xhr.bulkSpec.js
index 01e0a365..e35673c7 100644
--- a/test/service/xhr.bulkSpec.js
+++ b/test/service/xhr.bulkSpec.js
@@ -62,7 +62,7 @@ describe('$xhr.bulk', function() {
expect($xhrError).toHaveBeenCalled();
var cb = $xhrError.mostRecentCall.args[0].success;
- expect(typeof cb).toEqual($function);
+ expect(typeof cb).toEqual('function');
expect($xhrError).toHaveBeenCalledWith(
{url: '/req1', method: 'GET', data: null, success: cb},
{status: 404, response: 'NotFound'});
diff --git a/test/service/xhr.errorSpec.js b/test/service/xhr.errorSpec.js
index 82fafe80..6cc7fce0 100644
--- a/test/service/xhr.errorSpec.js
+++ b/test/service/xhr.errorSpec.js
@@ -30,7 +30,7 @@ describe('$xhr.error', function() {
$xhr('POST', '/req', 'MyData', callback);
$browserXhr.flush();
var cb = $xhrError.mostRecentCall.args[0].success;
- expect(typeof cb).toEqual($function);
+ expect(typeof cb).toEqual('function');
expect($xhrError).toHaveBeenCalledWith(
{url: '/req', method: 'POST', data: 'MyData', success: cb},
{status: 500, body: 'MyError'});