chore(test): improve test coverage for log4js

log4js.js - Line 37 - if (!enabled) return;
This commit is contained in:
Lam Wei Li 2022-03-07 01:11:32 +08:00
parent 05a64ff1fe
commit 70b69ea187
No known key found for this signature in database
GPG Key ID: 90F6ABECF080D7BF

View File

@ -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();
});