]> git.ardis.lu - envpass/commitdiff
Update to match `Logger` interface
authorArdis Lu <ardisglu@gmail.com>
Wed, 15 Jul 2026 05:01:44 +0000 (22:01 -0700)
committerArdis Lu <ardisglu@gmail.com>
Wed, 15 Jul 2026 05:02:06 +0000 (22:02 -0700)
To better interoperate with third-party loggers, `console.log` should be replaced with `console.info` and `console.debug` added.

test/setup.js

index 810753ab8032484f2e61be57bae1aa65443885e0..700fd24c5980e86a26bac64a49010b7cfd5bced7 100644 (file)
@@ -124,9 +124,9 @@ export function mockOpen(t, page) {
 }
 
 /**
- * @typedef AssertConsoleCounts The total number of times `console.log`, `console.info`, `console.warn`, and
+ * @typedef AssertConsoleCounts The total number of times `console.debug`, `console.info`, `console.warn`, and
  * `console.error` are expected to be called.
- * @property {number} [log] The number of times `console.log` is expected to be called. The default value is 0.
+ * @property {number} [debug] The number of times `console.debug` is expected to be called. The default value is 0.
  * @property {number} [info] The number of times `console.info` is expected to be called. The default value is 0.
  * @property {number} [warn] The number of times `console.warn` is expected to be called. The default value is 0.
  * @property {number} [error] The number of times `console.error` is expected to be called. The default value is 0.
@@ -142,7 +142,7 @@ export function mockOpen(t, page) {
  * to be called.
  */
 export function assertConsole(t, expected = {}) {
-  const actual = { log: 0, info: 0, warn: 0, error: 0 };
+  const actual = { debug: 0, info: 0, warn: 0, error: 0 };
   expected = { ...actual, ...expected };
 
   for (const m of /** @type {Array<keyof typeof actual>} */(Object.keys(actual))) {
This page took 0.034901 seconds and 4 git commands to generate.