diff --git a/packages/middleware-flexible-checksums/src/getChecksumAlgorithmForRequest.spec.ts b/packages/middleware-flexible-checksums/src/getChecksumAlgorithmForRequest.spec.ts index 7ac3ce5438d7..ce2942dec6bc 100644 --- a/packages/middleware-flexible-checksums/src/getChecksumAlgorithmForRequest.spec.ts +++ b/packages/middleware-flexible-checksums/src/getChecksumAlgorithmForRequest.spec.ts @@ -65,7 +65,7 @@ describe(getChecksumAlgorithmForRequest.name, () => { }; expect(() => { getChecksumAlgorithmForRequest(mockInput, mockOptions); - }).toThrow( + }).toThrowError( `The checksum algorithm "${unsupportedAlgo}" is not supported by the client.` + ` Select one of ${CLIENT_SUPPORTED_ALGORITHMS}.` );