Skip to content

Commit

Permalink
test(serialize.ts): add istanbul ignore
Browse files Browse the repository at this point in the history
Signed-off-by: euberdeveloper <euberdeveloper@gmail.com>
  • Loading branch information
euberdeveloper committed Apr 15, 2021
1 parent dbbb5f6 commit 741b2c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/modules/serialize.ts
Expand Up @@ -61,9 +61,11 @@ function serializeDecimal(value: number, type: string): Uint8Array {
throw new Error(`Invalid ${type}: value must be a number`);
}
if (value < min) {
/* istanbul ignore next */
throw new Error(`Invalid ${type}: value cannot be lower than ${min}`);
}
if (value > max) {
/* istanbul ignore next */
throw new Error(`Invalid ${type}: value cannot be bigger than ${max}`);
}

Expand Down

2 comments on commit 741b2c3

@vercel
Copy link

@vercel vercel bot commented on 741b2c3 Apr 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 741b2c3 Apr 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

byteify – ./

byteify-git-main-euberdeveloper.vercel.app
byteify.vercel.app
byteify-euberdeveloper.vercel.app

Please sign in to comment.