Skip to content

Commit

Permalink
fixup! feat(common): add URLSearchParams to request body
Browse files Browse the repository at this point in the history
  • Loading branch information
ajitsinghkaler committed Jun 30, 2020
1 parent bc4d1be commit 2f75035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/common/http/test/request_spec.ts
Expand Up @@ -126,7 +126,7 @@ const TEST_STRING = `I'm a body!`;
expect(baseReq.clone({body}).serializeBody()).toBe(body);
});
it('passes URLSearchParams through', () => {
const body = new URLSearchParams("foo=1&bar=2");
const body = new URLSearchParams('foo=1&bar=2');
expect(baseReq.clone({body}).serializeBody()).toBe(body);
});
it('passes strings through', () => {
Expand Down

0 comments on commit 2f75035

Please sign in to comment.