From 741b2c356c93853d189a0429099f384407e4d01a Mon Sep 17 00:00:00 2001 From: euberdeveloper Date: Thu, 15 Apr 2021 21:52:41 +0200 Subject: [PATCH] test(serialize.ts): add istanbul ignore Signed-off-by: euberdeveloper --- source/modules/serialize.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/modules/serialize.ts b/source/modules/serialize.ts index 7e7c30e..e166db7 100644 --- a/source/modules/serialize.ts +++ b/source/modules/serialize.ts @@ -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}`); }