Skip to content

Commit

Permalink
Update HAPServer.spec.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
NorthernMan54 committed Jun 24, 2024
1 parent 5d9c47a commit 1b2fd9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/HAPServer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,8 @@ describe(IsKnownHAPStatusError, () => {
.filter(error => error !== 0); // filter out HAPStatus.SUCCESS

for (const error of errorValues) {
// @ts-ignore:next-line
// @ts-ignore:next-line - This was @ts-expect-error: type mismatch, but it triggered build errors Summary of all failing tests src/lib/HAPServer.spec.ts:621:7 - error TS2578: Unused '@ts-expect-error' directive.

Check warning on line 621 in src/lib/HAPServer.spec.ts

View workflow job for this annotation

GitHub Actions / lint / ESLint

This line has a length of 218. Maximum allowed is 160

Check failure on line 621 in src/lib/HAPServer.spec.ts

View workflow job for this annotation

GitHub Actions / lint / ESLint

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free

const result = IsKnownHAPStatusError(error);
if (!result) {
fail("IsKnownHAPStatusError does not return true for error code " + error);
Expand Down

0 comments on commit 1b2fd9e

Please sign in to comment.