From 2bfd733756ca7c064b615aed618d23a25ae9d2e4 Mon Sep 17 00:00:00 2001 From: theknut Date: Thu, 1 Feb 2024 00:46:03 +0100 Subject: [PATCH] fix test --- src/types.ts | 2 +- test/waterkotte.test.ts | 13 ------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/src/types.ts b/src/types.ts index a47b856..b5b890c 100644 --- a/src/types.ts +++ b/src/types.ts @@ -127,7 +127,7 @@ export class HexAnalogState extends CommonState { private IEEE754_Hex32ToDez(param1: any, t: any): string { const a = param1.toString(16); - var e, + let e, i, n, l, diff --git a/test/waterkotte.test.ts b/test/waterkotte.test.ts index d4706f6..7858d66 100644 --- a/test/waterkotte.test.ts +++ b/test/waterkotte.test.ts @@ -1,7 +1,6 @@ import { expect } from '@jest/globals'; import axios from 'axios'; import MockAdapter from 'axios-mock-adapter'; -import { getStates } from '../src/states'; import { AdapterError, CommonState, @@ -279,18 +278,6 @@ describe('Waterkotte API - getTags', () => { }, 30000, ); - - it.only('asdasds', async () => { - expect(useMocks).toBeTruthy(); - mock.onGet(/.*/).reply(200, requestedTagsResponse); - const t = getStates(['Heizen', 'Kühlen', 'Wasser', 'Energiebilanz', 'Messwerte', 'Status']); - const states: CommonState[] = JSON.parse(requestedTags); - const response = await api.getTagsAsync(states, { token: '🥑' }); - - for (const tag of response) { - expect(tag.state).not.toBeUndefined(); - } - }); }); function applyMock(onMock: () => void) {