From fec5538f0158345ceeee097a1469ad7abb964cbc Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 16 Jul 2026 12:26:33 +0000 Subject: [PATCH] test: common: util: coverage --- common/util.spec.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/common/util.spec.js b/common/util.spec.js index f239bd67..5a19a8be 100644 --- a/common/util.spec.js +++ b/common/util.spec.js @@ -5,6 +5,8 @@ import { getRegExp, escapeRegExp, getExt, + time, + timeEnd, } from '#common/util'; test('getExt: no extension', (t) => { @@ -120,3 +122,17 @@ test('util: escapeRegExp', (t) => { t.equal(result, expected); t.end(); }); + +test('util: time', (t) => { + const [error] = tryCatch(time, 'test'); + + t.notOk(error, 'should not throw'); + t.end(); +}); + +test('util: timeEnd', (t) => { + const [error] = tryCatch(timeEnd, 'test'); + + t.notOk(error, 'should not throw'); + t.end(); +});