diff --git a/packages/prio3/src/prio3.spec.ts b/packages/prio3/src/prio3.spec.ts index 8c10a664d..607e734cf 100644 --- a/packages/prio3/src/prio3.spec.ts +++ b/packages/prio3/src/prio3.spec.ts @@ -9,22 +9,14 @@ import { import { TestFlp128 } from "./flp.spec.js"; import { XofShake128 } from "@divviup/xof"; import type { TestVector } from "@divviup/vdaf"; -import countTestVector0 from "./testVectors/Prio3Count_0.json" assert { type: - "json" }; -import countTestVector1 from "./testVectors/Prio3Count_1.json" assert { type: - "json" }; -import histogramTestVector0 from "./testVectors/Prio3Histogram_0.json" assert { type: - "json" }; -import histogramTestVector1 from "./testVectors/Prio3Histogram_1.json" assert { type: - "json" }; -import sumTestVector0 from "./testVectors/Prio3Sum_0.json" assert { type: - "json" }; -import sumTestVector1 from "./testVectors/Prio3Sum_1.json" assert { type: - "json" }; -import sumVecTestVector0 from "./testVectors/Prio3SumVec_0.json" assert { type: - "json" }; -import sumVecTestVector1 from "./testVectors/Prio3SumVec_1.json" assert { type: - "json" }; +import countTestVector0 from "./testVectors/Prio3Count_0.json" assert { type: "json" }; +import countTestVector1 from "./testVectors/Prio3Count_1.json" assert { type: "json" }; +import histogramTestVector0 from "./testVectors/Prio3Histogram_0.json" assert { type: "json" }; +import histogramTestVector1 from "./testVectors/Prio3Histogram_1.json" assert { type: "json" }; +import sumTestVector0 from "./testVectors/Prio3Sum_0.json" assert { type: "json" }; +import sumTestVector1 from "./testVectors/Prio3Sum_1.json" assert { type: "json" }; +import sumVecTestVector0 from "./testVectors/Prio3SumVec_0.json" assert { type: "json" }; +import sumVecTestVector1 from "./testVectors/Prio3SumVec_1.json" assert { type: "json" }; async function assertCountTestVector( testVector: TestVector, diff --git a/packages/xof/src/index.spec.ts b/packages/xof/src/index.spec.ts index ea4afeaa8..717ac9290 100644 --- a/packages/xof/src/index.spec.ts +++ b/packages/xof/src/index.spec.ts @@ -1,8 +1,7 @@ import { assert } from "chai"; import { XofShake128 } from "./index.js"; import { Field128, Field64 } from "@divviup/field"; -import XofShake128TestVector from "./testVectors/XofShake128.json" assert { type: - "json" }; +import XofShake128TestVector from "./testVectors/XofShake128.json" assert { type: "json" }; function assertBuffersEqual(x: Uint8Array, y: Uint8Array) { assert.equal(Buffer.from(x).toString("hex"), Buffer.from(y).toString("hex"));