test: clarify comment
This commit is contained in:
parent
7767ef1ac7
commit
947102a2d9
|
@ -7,7 +7,7 @@ export async function jsonChecksum (object) {
|
|||
let inBuffer = binaryStringToArrayBuffer(inString)
|
||||
/* istanbul ignore else */
|
||||
if (import.meta.env.MODE === 'test') {
|
||||
// For whatever reason Node's built-in crypto throws an error for ArrayBuffers
|
||||
// For whatever reason crypto throws an error for ArrayBuffers in Vitest
|
||||
inBuffer = Buffer.from(new Uint8Array(inBuffer))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue