Skip to content

Commit e198ea0

Browse files
fix: test cases endpoint
1 parent 6920a57 commit e198ea0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pages/endpoint/__tests__/endpoint.spec.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe('<Endpoint />', () => {
3333
await userEvent.type(appIdInput, '123');
3434
await userEvent.click(submitButton);
3535

36-
expect(LocalStorageUtils.getValue('config.server_url') ?? '').toBe('qa10.deriv.dev');
36+
expect(localStorage.getItem('config.server_url') ?? '').toBe('qa10.deriv.dev');
3737
expect(LocalStorageUtils.getValue('config.app_id') ?? '').toBe('123');
3838
});
3939

@@ -48,7 +48,7 @@ describe('<Endpoint />', () => {
4848
await userEvent.type(appIdInput, '123');
4949
await userEvent.click(resetButton);
5050

51-
expect(LocalStorageUtils.getValue('config.server_url') ?? '').toBe('blue.derivws.com');
51+
expect(localStorage.getItem('config.server_url') ?? '').toBe('blue.derivws.com');
5252
expect(LocalStorageUtils.getValue('config.app_id') ?? '').toBe(65555);
5353
});
5454
});

0 commit comments

Comments
 (0)