mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-24 03:55:49 +08:00
fix($browser.xhr): properly delete jsonp callbacks
This commit is contained in:
@@ -96,7 +96,7 @@ describe('browser', function(){
|
||||
fakeWindow[url[1]]('data');
|
||||
expect(callback).toHaveBeenCalled();
|
||||
expect(log).toEqual('remove();200:data;');
|
||||
expect(typeof fakeWindow[url[1]]).toEqual('undefined');
|
||||
expect(fakeWindow[url[1]]).toBeUndefined();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user