From fe58f1a404515617ad65c997c2ccec03dbda7486 Mon Sep 17 00:00:00 2001 From: David Cook Date: Fri, 15 Sep 2023 16:52:09 -0500 Subject: [PATCH] Remove extra console.log() statement in test (#416) * Remove extra console.log() statement in test * Prohibit use of the console object --- .eslintrc.json | 3 ++- packages/dap/src/hpkeConfig.spec.ts | 1 - packages/interop-test-client/src/index.ts | 3 +++ scripts/benchmarks.ts | 2 ++ 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index f951591df..6214413d1 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -28,6 +28,7 @@ { "allowEmptyCatch": true } - ] + ], + "no-console": "error" } } diff --git a/packages/dap/src/hpkeConfig.spec.ts b/packages/dap/src/hpkeConfig.spec.ts index db57bfdb5..80d20f3ed 100644 --- a/packages/dap/src/hpkeConfig.spec.ts +++ b/packages/dap/src/hpkeConfig.spec.ts @@ -285,7 +285,6 @@ describe("DAP HpkeConfig", () => { const kem = new DhkemP256HkdfSha256(); const { publicKey, privateKey } = await kem.generateKeyPair(); const key = await kem.serializePublicKey(publicKey); - console.log(Buffer.from(key).toString("ascii")); const config = new HpkeConfig( 100, diff --git a/packages/interop-test-client/src/index.ts b/packages/interop-test-client/src/index.ts index c30ee7a94..1ff90b3bf 100644 --- a/packages/interop-test-client/src/index.ts +++ b/packages/interop-test-client/src/index.ts @@ -1,4 +1,7 @@ // This script implements the client role of draft-dcook-ppm-dap-interop-test-design-02. + +/* eslint no-console: "off" */ + import type { Request, Response } from "express"; import express from "express"; import type { ReportOptions } from "@divviup/dap"; diff --git a/scripts/benchmarks.ts b/scripts/benchmarks.ts index b3ba1ed5a..eaa9e790f 100644 --- a/scripts/benchmarks.ts +++ b/scripts/benchmarks.ts @@ -1,3 +1,5 @@ +/* eslint no-console: "off" */ + import Benchmark from "benchmark"; import { Task, KnownVdafSpec, VdafMeasurement } from "dap/client"; import { TaskId } from "dap/taskId";