Signed-off-by: Samira Mokaram <samiram@spotify.com>
This commit is contained in:
Samira Mokaram
2021-08-17 13:48:14 +02:00
parent 5ab35b84ec
commit 6fb2d041b7
@@ -126,7 +126,7 @@ describe('DefaultAuthConnector', () => {
expect(popupSpy).toBeCalledTimes(1);
expect(popupSpy.mock.calls[0][0]).toMatchObject({
url: 'http://my-host/api/auth/my-provider/start?scope=a%20b&env=production',
url: 'http://my-host/api/auth/my-provider/start?scope=a%20b&origin=http%3A%2F%2Flocalhost&env=production',
});
await expect(sessionPromise).resolves.toEqual({
@@ -174,7 +174,7 @@ describe('DefaultAuthConnector', () => {
expect(popupSpy).toBeCalledTimes(1);
expect(popupSpy.mock.calls[0][0]).toMatchObject({
url: 'http://my-host/api/auth/my-provider/start?scope=-ab-&env=production',
url: 'http://my-host/api/auth/my-provider/start?scope=-ab-&origin=http%3A%2F%2Flocalhost&env=production',
});
});
});