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

Commit 9f2ff43

Browse files
committed
fix: 🚀 updated test coverage for endpoint
1 parent 59ae599 commit 9f2ff43

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/features/Endpoint/__tests__/Endpoint.test.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { act, cleanup, fireEvent, render, screen } from '@testing-library/react'
22
import React from 'react';
33
import EndPoint from '../Endpoint';
44
import userEvent from '@testing-library/user-event';
5+
import { DEFAULT_WS_SERVER } from '@site/src/utils/constants';
56

67
describe('Endpoint', () => {
78
beforeEach(() => {
@@ -23,7 +24,7 @@ describe('Endpoint', () => {
2324
it('should have default values in input fields', () => {
2425
const server = screen.getByPlaceholderText('e.g. ws.derivws.com');
2526
const app_id = screen.getByPlaceholderText('e.g. 9999');
26-
expect(server).toHaveValue('oauth.deriv.com');
27+
expect(server).toHaveValue(DEFAULT_WS_SERVER);
2728

2829
expect(app_id).toHaveValue('35074');
2930
});

0 commit comments

Comments
 (0)