diff --git a/packages/middleware-flexible-checksums/src/selectChecksumAlgorithmFunction.spec.ts b/packages/middleware-flexible-checksums/src/selectChecksumAlgorithmFunction.spec.ts index b1323228740e..7d1e7b785e81 100644 --- a/packages/middleware-flexible-checksums/src/selectChecksumAlgorithmFunction.spec.ts +++ b/packages/middleware-flexible-checksums/src/selectChecksumAlgorithmFunction.spec.ts @@ -1,8 +1,8 @@ -import { AwsCrc32 } from "@aws-crypto/crc32"; import { AwsCrc32c } from "@aws-crypto/crc32c"; import { describe, expect, test as it, vi } from "vitest"; import { ChecksumAlgorithm } from "./constants"; +import { getCrc32ChecksumAlgorithmFunction } from "./getCrc32ChecksumAlgorithmFunction"; import { selectChecksumAlgorithmFunction } from "./selectChecksumAlgorithmFunction"; describe(selectChecksumAlgorithmFunction.name, () => { @@ -14,7 +14,7 @@ describe(selectChecksumAlgorithmFunction.name, () => { it.each([ [ChecksumAlgorithm.MD5, mockConfig.md5], - [ChecksumAlgorithm.CRC32, AwsCrc32], + [ChecksumAlgorithm.CRC32, getCrc32ChecksumAlgorithmFunction()], [ChecksumAlgorithm.CRC32C, AwsCrc32c], [ChecksumAlgorithm.SHA1, mockConfig.sha1], [ChecksumAlgorithm.SHA256, mockConfig.sha256],