From 70b69ea187784f1fd904ec2e0d942f6f78397da4 Mon Sep 17 00:00:00 2001 From: Lam Wei Li Date: Mon, 7 Mar 2022 01:11:32 +0800 Subject: [PATCH] chore(test): improve test coverage for log4js log4js.js - Line 37 - if (!enabled) return; --- test/tap/logging-test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/tap/logging-test.js b/test/tap/logging-test.js index 7943f0c..9cfdab8 100644 --- a/test/tap/logging-test.js +++ b/test/tap/logging-test.js @@ -154,6 +154,8 @@ test("log4js", batch => { "should invoke appender shutdowns" ); logger.info("this should not go to the appenders"); + logger.log("info", "this should not go to the appenders"); + logger._log(require("../../lib/levels").INFO, ["this should not go to the appenders"]); t.notOk(events.event); t.end(); });