From 1b33fa4992cc3e8148808cd5ebd37b422882065f Mon Sep 17 00:00:00 2001 From: sanjam chhatwal Date: Mon, 18 Dec 2023 11:18:36 +0400 Subject: [PATCH] fix: test fix --- .../__tests__/useDynamicImport.test.tsx | 140 ------------------ 1 file changed, 140 deletions(-) diff --git a/src/hooks/useDynamicImportJSON/__tests__/useDynamicImport.test.tsx b/src/hooks/useDynamicImportJSON/__tests__/useDynamicImport.test.tsx index 009230dd5..5c499b3fb 100644 --- a/src/hooks/useDynamicImportJSON/__tests__/useDynamicImport.test.tsx +++ b/src/hooks/useDynamicImportJSON/__tests__/useDynamicImport.test.tsx @@ -110,144 +110,4 @@ describe('useDynamicImportJSON', () => { name: 'active_symbols', }); }); - - it('should have correct text area inputs inside dynamic imports correctly', () => { - act(() => { - result.current.dynamicImportJSON(result.current.text_data.selected_value); - }); - expect(result.current.request_info).toEqual({ - $schema: 'http://json-schema.org/draft-04/schema#', - additionalProperties: false, - auth_required: 0, - default: { - $schema: 'http://json-schema.org/draft-04/schema#', - additionalProperties: false, - auth_required: 0, - description: - 'Retrieve a list of all currently active symbols (underlying markets upon which contracts are available for trading).', - properties: { - active_symbols: { - description: 'If you use `brief`, only a subset of fields will be returned.', - enum: ['brief', 'full'], - type: 'string', - }, - landing_company: { - description: 'Deprecated - replaced by landing_company_short.', - enum: [ - 'iom', - 'malta', - 'maltainvest', - 'svg', - 'virtual', - 'vanuatu', - 'champion', - 'champion-virtual', - ], - type: 'string', - }, - landing_company_short: { - description: - '[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.', - enum: [ - 'iom', - 'malta', - 'maltainvest', - 'svg', - 'virtual', - 'vanuatu', - 'champion', - 'champion-virtual', - ], - type: 'string', - }, - loginid: { - description: - "[Optional] The login id of the user. If left unspecified, it defaults to the initial authorized token's login id.", - pattern: '^[A-Za-z]+[0-9]+$', - type: 'string', - }, - passthrough: { - description: - '[Optional] Used to pass data through the websocket, which may be retrieved via the `echo_req` output field. Maximum size is 3500 bytes.', - type: 'object', - }, - product_type: { - description: - '[Optional] If you specify this field, only symbols that can be traded through that product type will be returned.', - enum: ['basic'], - type: 'string', - }, - req_id: { - description: '[Optional] Used to map request to response.', - type: 'integer', - }, - }, - required: ['active_symbols'], - title: 'Active Symbols (request)', - type: 'object', - }, - description: - 'Retrieve a list of all currently active symbols (underlying markets upon which contracts are available for trading).', - properties: { - active_symbols: { - description: 'If you use `brief`, only a subset of fields will be returned.', - enum: ['brief', 'full'], - type: 'string', - }, - landing_company: { - description: 'Deprecated - replaced by landing_company_short.', - enum: [ - 'iom', - 'malta', - 'maltainvest', - 'svg', - 'virtual', - 'vanuatu', - 'champion', - 'champion-virtual', - ], - type: 'string', - }, - landing_company_short: { - description: - '[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.', - enum: [ - 'iom', - 'malta', - 'maltainvest', - 'svg', - 'virtual', - 'vanuatu', - 'champion', - 'champion-virtual', - ], - type: 'string', - }, - loginid: { - description: - "[Optional] The login id of the user. If left unspecified, it defaults to the initial authorized token's login id.", - pattern: '^[A-Za-z]+[0-9]+$', - type: 'string', - }, - passthrough: { - description: - '[Optional] Used to pass data through the websocket, which may be retrieved via the `echo_req` output field. Maximum size is 3500 bytes.', - type: 'object', - }, - product_type: { - description: - '[Optional] If you specify this field, only symbols that can be traded through that product type will be returned.', - enum: ['basic'], - type: 'string', - }, - req_id: { - description: '[Optional] Used to map request to response.', - type: 'integer', - }, - }, - required: ['active_symbols'], - title: 'Active Symbols (request)', - type: 'object', - }); - }); });