From 4ff41be4c6003c1dc1416e5de7f724c13652f442 Mon Sep 17 00:00:00 2001 From: Nicolas Van Labeke Date: Tue, 3 Oct 2023 18:45:55 +0100 Subject: [PATCH] test(138): fix test --- .../src/modules/EdgeVisualisation/utils/nodes-utils.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hivemq-edge/src/frontend/src/modules/EdgeVisualisation/utils/nodes-utils.spec.ts b/hivemq-edge/src/frontend/src/modules/EdgeVisualisation/utils/nodes-utils.spec.ts index ecc4ef0c09..60b1a9e3e9 100644 --- a/hivemq-edge/src/frontend/src/modules/EdgeVisualisation/utils/nodes-utils.spec.ts +++ b/hivemq-edge/src/frontend/src/modules/EdgeVisualisation/utils/nodes-utils.spec.ts @@ -6,7 +6,7 @@ import { MOCK_ADAPTER_ID } from '@/__test-utils__/mocks.ts' import { Bridge } from '@/api/__generated__' import { mockBridge } from '@/api/hooks/useGetBridges/__handlers__' import { mockMqttListener } from '@/api/hooks/useGateway/__handlers__' -import { mockAdapter } from '@/api/hooks/useProtocolAdapters/__handlers__' +import { mockAdapter, mockProtocolAdapter } from '@/api/hooks/useProtocolAdapters/__handlers__' import { IdStubs, NodeTypes } from '../types.ts' import { createAdapterNode, createBridgeNode, createEdgeNode, createListenerNode } from './nodes-utils.ts' @@ -149,7 +149,7 @@ describe('createListenerNode', () => { describe('createAdapterNode', () => { it('should create a default Adapter node', async () => { - const actual = createAdapterNode(mockAdapter, 1, 2, MOCK_THEME) + const actual = createAdapterNode(mockProtocolAdapter, mockAdapter, 1, 2, MOCK_THEME) const expected: { nodeAdapter: Node edgeConnector: Edge @@ -171,7 +171,7 @@ describe('createAdapterNode', () => { }) it('should create an Adapter node with stored location', async () => { - const actual = createAdapterNode(mockAdapter, 1, 2, MOCK_THEME, MOCK_LOCAL_STORAGE) + const actual = createAdapterNode(mockProtocolAdapter, mockAdapter, 1, 2, MOCK_THEME, MOCK_LOCAL_STORAGE) const expected: { nodeAdapter: Node edgeConnector: Edge