Skip to content

Commit

Permalink
Fix test to look for exotic react component, rather than function com…
Browse files Browse the repository at this point in the history
…ponent
  • Loading branch information
clintandrewhall committed Dec 6, 2024
1 parent 7870eda commit 4bb198b
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('useLLMsModels Hook', () => {
connectorName: 'OpenAI Connector',
connectorType: LLMs.openai,
disabled: false,
icon: expect.any(Function),
icon: expect.objectContaining({ render: expect.any(Function) }),
id: 'connectorId1OpenAI GPT-4o ',
name: 'OpenAI GPT-4o ',
showConnectorName: false,
Expand All @@ -52,7 +52,7 @@ describe('useLLMsModels Hook', () => {
connectorName: 'OpenAI Connector',
connectorType: LLMs.openai,
disabled: false,
icon: expect.any(Function),
icon: expect.objectContaining({ render: expect.any(Function) }),
id: 'connectorId1OpenAI GPT-4 Turbo ',
name: 'OpenAI GPT-4 Turbo ',
showConnectorName: false,
Expand All @@ -64,7 +64,7 @@ describe('useLLMsModels Hook', () => {
connectorName: 'OpenAI Connector',
connectorType: LLMs.openai,
disabled: false,
icon: expect.any(Function),
icon: expect.objectContaining({ render: expect.any(Function) }),
id: 'connectorId1OpenAI GPT-3.5 Turbo ',
name: 'OpenAI GPT-3.5 Turbo ',
showConnectorName: false,
Expand All @@ -76,7 +76,7 @@ describe('useLLMsModels Hook', () => {
connectorName: 'OpenAI Azure Connector',
connectorType: LLMs.openai_azure,
disabled: false,
icon: expect.any(Function),
icon: expect.objectContaining({ render: expect.any(Function) }),
id: 'connectorId2OpenAI Azure Connector (Azure OpenAI)',
name: 'OpenAI Azure Connector (Azure OpenAI)',
showConnectorName: false,
Expand All @@ -88,7 +88,7 @@ describe('useLLMsModels Hook', () => {
connectorName: 'Bedrock Connector',
connectorType: LLMs.bedrock,
disabled: false,
icon: expect.any(Function),
icon: expect.objectContaining({ render: expect.any(Function) }),
id: 'connectorId2Anthropic Claude 3 Haiku',
name: 'Anthropic Claude 3 Haiku',
showConnectorName: false,
Expand All @@ -100,7 +100,7 @@ describe('useLLMsModels Hook', () => {
connectorName: 'Bedrock Connector',
connectorType: LLMs.bedrock,
disabled: false,
icon: expect.any(Function),
icon: expect.objectContaining({ render: expect.any(Function) }),
id: 'connectorId2Anthropic Claude 3.5 Sonnet',
name: 'Anthropic Claude 3.5 Sonnet',
showConnectorName: false,
Expand All @@ -112,7 +112,7 @@ describe('useLLMsModels Hook', () => {
connectorName: 'OpenAI OSS Model Connector',
connectorType: LLMs.openai_other,
disabled: false,
icon: expect.any(Function),
icon: expect.objectContaining({ render: expect.any(Function) }),
id: 'connectorId3OpenAI OSS Model Connector (OpenAI Compatible Service)',
name: 'OpenAI OSS Model Connector (OpenAI Compatible Service)',
showConnectorName: false,
Expand Down

0 comments on commit 4bb198b

Please sign in to comment.