Skip to content

Commit

Permalink
fix: test cases endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
maryia-matskevich-deriv committed Jan 16, 2025
1 parent 6920a57 commit e198ea0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/endpoint/__tests__/endpoint.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('<Endpoint />', () => {
await userEvent.type(appIdInput, '123');
await userEvent.click(submitButton);

expect(LocalStorageUtils.getValue('config.server_url') ?? '').toBe('qa10.deriv.dev');
expect(localStorage.getItem('config.server_url') ?? '').toBe('qa10.deriv.dev');
expect(LocalStorageUtils.getValue('config.app_id') ?? '').toBe('123');
});

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

expect(LocalStorageUtils.getValue('config.server_url') ?? '').toBe('blue.derivws.com');
expect(localStorage.getItem('config.server_url') ?? '').toBe('blue.derivws.com');
expect(LocalStorageUtils.getValue('config.app_id') ?? '').toBe(65555);
});
});

0 comments on commit e198ea0

Please sign in to comment.