Skip to content

Commit

Permalink
Remove extra console.log() statement in test (#416)
Browse files Browse the repository at this point in the history
* Remove extra console.log() statement in test

* Prohibit use of the console object
  • Loading branch information
divergentdave authored Sep 15, 2023
1 parent 4e5612d commit fe58f1a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
{
"allowEmptyCatch": true
}
]
],
"no-console": "error"
}
}
1 change: 0 additions & 1 deletion packages/dap/src/hpkeConfig.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 3 additions & 0 deletions packages/interop-test-client/src/index.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 2 additions & 0 deletions scripts/benchmarks.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint no-console: "off" */

import Benchmark from "benchmark";
import { Task, KnownVdafSpec, VdafMeasurement } from "dap/client";
import { TaskId } from "dap/taskId";
Expand Down

0 comments on commit fe58f1a

Please sign in to comment.