Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
theknut committed Jan 31, 2024
1 parent 166ef57 commit 2bfd733
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
13 changes: 0 additions & 13 deletions test/waterkotte.test.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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, <Login>{ token: '🥑' });

for (const tag of response) {
expect(tag.state).not.toBeUndefined();
}
});
});

function applyMock(onMock: () => void) {
Expand Down

0 comments on commit 2bfd733

Please sign in to comment.