Skip to content

Commit 250f635

Browse files
committed
Assert literal encoded body in basic scope test
Assisted-By: devx/36a3e4d9-c136-46e2-a221-9934ba078d6f
1 parent 0733652 commit 250f635

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/cli-kit/src/private/node/session/device-authorization.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ describe('requestDeviceAuthorization', () => {
6363
expect(shopifyFetch).toBeCalledWith('https://fqdn.com/oauth/device_authorization', {
6464
method: 'POST',
6565
headers: {'Content-type': 'application/x-www-form-urlencoded'},
66-
body: new URLSearchParams({client_id: 'clientId', scope: 'scope1 scope2'}).toString(),
66+
body: 'client_id=clientId&scope=scope1+scope2',
6767
})
6868
expect(got).toEqual(dataExpected)
6969
})

0 commit comments

Comments
 (0)