Skip to content

Commit

Permalink
fix: dpts tests
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Apr 5, 2024
1 parent 2853126 commit 4d76d6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/dptlib/test-dpt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,23 @@ test('resolve', function (t) {

t.throws(
() => {
resolve('29.010')
resolve('1111111.010')
},
/Unsupported DPT: .*/,
'Unsupported/unknown DPT',
)

t.throws(
() => {
resolve(29)
resolve(1111111)
},
/Unsupported DPT: .*/,
'Unsupported/unknown Int DPT',
)

t.throws(
() => {
resolve([29] as any)
resolve([1111111] as any)
},
/Unsupported DPT: .*/,
'Unsupported/unknown Int DPT',
Expand Down

0 comments on commit 4d76d6b

Please sign in to comment.