fix(http): remove dots from jsonp callback name (#13219)
PR Close #13219
This commit is contained in:

committed by
Miško Hevery

parent
1ef3eeecbd
commit
1eece5046d
@ -70,6 +70,11 @@ export function main() {
|
||||
expect(instance).toBeAnInstanceOf(JSONPConnection);
|
||||
});
|
||||
|
||||
it('callback name should not contain dots', () => {
|
||||
const domJsonp = new MockBrowserJsonp();
|
||||
const callback: string = domJsonp.requestCallback(domJsonp.nextRequestID());
|
||||
expect(callback.indexOf('.') === -1).toBeTruthy();
|
||||
});
|
||||
|
||||
describe('JSONPConnection', () => {
|
||||
it('should use the injected BaseResponseOptions to create the response',
|
||||
|
Reference in New Issue
Block a user