test: clarify comment

This commit is contained in:
Nolan Lawson 2024-03-09 10:26:28 -08:00
parent 7767ef1ac7
commit 947102a2d9
1 changed files with 1 additions and 1 deletions

View File

@ -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))
}