Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit 05cd34e

Browse files
Hubert KosterHubert Koster
authored andcommitted
chore: update test
1 parent 6f241b9 commit 05cd34e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/hooks/useLoginUrl/__tests__/useLoginUrl.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as utils from '@site/src/utils';
55

66
jest
77
.spyOn(utils, 'getServerConfig')
8-
.mockReturnValue({ appId: '1234', serverUrl: 'test.binary.sx' });
8+
.mockReturnValue({ appId: '1234', serverUrl: 'test.binary.sx', oauth: 'test.deriv.com' });
99

1010
describe('Use Login URL', () => {
1111
afterEach(() => {
@@ -23,7 +23,7 @@ describe('Use Login URL', () => {
2323

2424
expect(loginUrl).toContain('l=en');
2525
expect(utils.getServerConfig).toHaveBeenCalled();
26-
expect(loginUrl).toMatch(/https:\/\/test.binary.sx/);
26+
expect(loginUrl).toMatch('https://test.deriv.com/oauth2/authorize?app_id=1234&l=en');
2727
expect(loginUrl).toMatch(/app_id=1234/);
2828
});
2929

@@ -37,7 +37,7 @@ describe('Use Login URL', () => {
3737

3838
expect(loginUrl).toContain('l=es');
3939
expect(utils.getServerConfig).toHaveBeenCalled();
40-
expect(loginUrl).toMatch(/https:\/\/test.binary.sx/);
40+
expect(loginUrl).toMatch('https://test.deriv.com/oauth2/authorize?app_id=1234&l=es');
4141
expect(loginUrl).toMatch(/app_id=1234/);
4242
});
4343
});

0 commit comments

Comments
 (0)