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

Commit b24cb50

Browse files
authored
Merge pull request #273 from sanjam-deriv/testupdate
2 parents e00229d + 1b33fa4 commit b24cb50

File tree

1 file changed

+0
-140
lines changed

1 file changed

+0
-140
lines changed

src/hooks/useDynamicImportJSON/__tests__/useDynamicImport.test.tsx

Lines changed: 0 additions & 140 deletions
Original file line numberDiff line numberDiff line change
@@ -110,144 +110,4 @@ describe('useDynamicImportJSON', () => {
110110
name: 'active_symbols',
111111
});
112112
});
113-
114-
it('should have correct text area inputs inside dynamic imports correctly', () => {
115-
act(() => {
116-
result.current.dynamicImportJSON(result.current.text_data.selected_value);
117-
});
118-
expect(result.current.request_info).toEqual({
119-
$schema: 'http://json-schema.org/draft-04/schema#',
120-
additionalProperties: false,
121-
auth_required: 0,
122-
default: {
123-
$schema: 'http://json-schema.org/draft-04/schema#',
124-
additionalProperties: false,
125-
auth_required: 0,
126-
description:
127-
'Retrieve a list of all currently active symbols (underlying markets upon which contracts are available for trading).',
128-
properties: {
129-
active_symbols: {
130-
description: 'If you use `brief`, only a subset of fields will be returned.',
131-
enum: ['brief', 'full'],
132-
type: 'string',
133-
},
134-
landing_company: {
135-
description: 'Deprecated - replaced by landing_company_short.',
136-
enum: [
137-
'iom',
138-
'malta',
139-
'maltainvest',
140-
'svg',
141-
'virtual',
142-
'vanuatu',
143-
'champion',
144-
'champion-virtual',
145-
],
146-
type: 'string',
147-
},
148-
landing_company_short: {
149-
description:
150-
'[Optional] If you specify this field, only symbols available for trading by that landing company will be returned. If you are logged in, only symbols available for trading by your landing company will be returned regardless of what you specify in this field.',
151-
enum: [
152-
'iom',
153-
'malta',
154-
'maltainvest',
155-
'svg',
156-
'virtual',
157-
'vanuatu',
158-
'champion',
159-
'champion-virtual',
160-
],
161-
type: 'string',
162-
},
163-
loginid: {
164-
description:
165-
"[Optional] The login id of the user. If left unspecified, it defaults to the initial authorized token's login id.",
166-
pattern: '^[A-Za-z]+[0-9]+$',
167-
type: 'string',
168-
},
169-
passthrough: {
170-
description:
171-
'[Optional] Used to pass data through the websocket, which may be retrieved via the `echo_req` output field. Maximum size is 3500 bytes.',
172-
type: 'object',
173-
},
174-
product_type: {
175-
description:
176-
'[Optional] If you specify this field, only symbols that can be traded through that product type will be returned.',
177-
enum: ['basic'],
178-
type: 'string',
179-
},
180-
req_id: {
181-
description: '[Optional] Used to map request to response.',
182-
type: 'integer',
183-
},
184-
},
185-
required: ['active_symbols'],
186-
title: 'Active Symbols (request)',
187-
type: 'object',
188-
},
189-
description:
190-
'Retrieve a list of all currently active symbols (underlying markets upon which contracts are available for trading).',
191-
properties: {
192-
active_symbols: {
193-
description: 'If you use `brief`, only a subset of fields will be returned.',
194-
enum: ['brief', 'full'],
195-
type: 'string',
196-
},
197-
landing_company: {
198-
description: 'Deprecated - replaced by landing_company_short.',
199-
enum: [
200-
'iom',
201-
'malta',
202-
'maltainvest',
203-
'svg',
204-
'virtual',
205-
'vanuatu',
206-
'champion',
207-
'champion-virtual',
208-
],
209-
type: 'string',
210-
},
211-
landing_company_short: {
212-
description:
213-
'[Optional] If you specify this field, only symbols available for trading by that landing company will be returned. If you are logged in, only symbols available for trading by your landing company will be returned regardless of what you specify in this field.',
214-
enum: [
215-
'iom',
216-
'malta',
217-
'maltainvest',
218-
'svg',
219-
'virtual',
220-
'vanuatu',
221-
'champion',
222-
'champion-virtual',
223-
],
224-
type: 'string',
225-
},
226-
loginid: {
227-
description:
228-
"[Optional] The login id of the user. If left unspecified, it defaults to the initial authorized token's login id.",
229-
pattern: '^[A-Za-z]+[0-9]+$',
230-
type: 'string',
231-
},
232-
passthrough: {
233-
description:
234-
'[Optional] Used to pass data through the websocket, which may be retrieved via the `echo_req` output field. Maximum size is 3500 bytes.',
235-
type: 'object',
236-
},
237-
product_type: {
238-
description:
239-
'[Optional] If you specify this field, only symbols that can be traded through that product type will be returned.',
240-
enum: ['basic'],
241-
type: 'string',
242-
},
243-
req_id: {
244-
description: '[Optional] Used to map request to response.',
245-
type: 'integer',
246-
},
247-
},
248-
required: ['active_symbols'],
249-
title: 'Active Symbols (request)',
250-
type: 'object',
251-
});
252-
});
253113
});

0 commit comments

Comments
 (0)