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}`); }