aboutsummaryrefslogtreecommitdiffstats
path: root/test/BrowserSpecs.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/BrowserSpecs.js')
-rw-r--r--test/BrowserSpecs.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/BrowserSpecs.js b/test/BrowserSpecs.js
index 92e4e501..a88df3f4 100644
--- a/test/BrowserSpecs.js
+++ b/test/BrowserSpecs.js
@@ -111,7 +111,7 @@ describe('browser', function(){
var script = scripts[0];
var url = script.src.split('?cb=');
expect(url[0]).toEqual('http://example.org/path');
- expect(typeof fakeWindow[url[1]]).toEqual($function);
+ expect(typeof fakeWindow[url[1]]).toEqual('function');
fakeWindow[url[1]]('data');
script.onload();
@@ -125,8 +125,8 @@ describe('browser', function(){
it('should call callback when script fails to load', function() {
browser.xhr('JSON', 'http://example.org/path?cb=JSON_CALLBACK', null, callback);
var script = scripts[0];
- expect(typeof script.onload).toBe($function);
- expect(typeof script.onerror).toBe($function);
+ expect(typeof script.onload).toBe('function');
+ expect(typeof script.onerror).toBe('function');
script.onerror();
expect(log).toEqual('undefined:undefined;');