Skip to content

Commit

Permalink
test: Fix broken tests and testrunning in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
nervetattoo committed Apr 11, 2021
1 parent 5c6635f commit 1ea41b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"postversion": "npm run build",
"dev": "concurrently 'npm:dev:*'",
"dev:build": "tsc --watch",
"dev:test": "jest --watch",
"dev:test": "jest --watchAll",
"size-build": "yarn build",
"size": "size-limit",
"analyze": "size-limit --why",
Expand Down
2 changes: 1 addition & 1 deletion src/test/renderInfoItem.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ test('return undefined on hide and no state', () => {
renderInfoItem({
hide: false,
hass: {},
state: '',
state: undefined,
details: {},
})
).toBe(undefined)
Expand Down
4 changes: 2 additions & 2 deletions src/test/setpoints.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test('single setpoint', () => {
).toEqual(match)

expect(
parseSetpoints(false, { temperature: 20, target_temp_low: 19 })
parseSetpoints(null, { temperature: 20, target_temp_low: 19 })
).toEqual(match)
})

Expand All @@ -25,7 +25,7 @@ test('dual setpoint', () => {
})

test('dual setpoint defaults', () => {
const result = parseSetpoints(false, {
const result = parseSetpoints(undefined, {
target_temp_high: 20,
target_temp_low: 19,
})
Expand Down

0 comments on commit 1ea41b3

Please sign in to comment.