Skip to content

Commit

Permalink
Fix WH57 unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rhockenbury committed Sep 13, 2024
1 parent 9cab501 commit 78167f5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"hap-nodejs": "^1.1.0",
"homebridge": "^1.8.4",
"mocha": "^10.7.3",
"mockdate": "^3.0.5",
"nodemon": "^3.1.4",
"remark-cli": "^12.0.1",
"remark-lint-no-dead-urls": "^1.1.0",
Expand Down
3 changes: 3 additions & 0 deletions tests/unit/devices/WH57.spec.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import { expect } from 'chai';
import { WH57 } from './../../../src/devices/WH57';
import { createPlatform, api } from './../../driver';
import MockDate from "mockdate";

//------------------------------------------------------------------------------

let platform = null;
let accessory = null;
let sensor = null;

MockDate.set("2024-09-02");

const dataReport = {
"dateutc": "2024-07-24 19:04:22",
"lightning_num": "3",
Expand Down

0 comments on commit 78167f5

Please sign in to comment.