aboutsummaryrefslogtreecommitdiffstats
path: root/test/service/xhr.errorSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/service/xhr.errorSpec.js')
-rw-r--r--test/service/xhr.errorSpec.js2
1 files changed, 1 insertions, 1 deletions
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'});