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 May 7, 2021
1 parent 9307516 commit d0088be
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 @@ -144,7 +144,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 d0088be

Please sign in to comment.