From f49254168e6c9a31b161cbdc4742ebe570597d48 Mon Sep 17 00:00:00 2001 From: Cotton Hou Date: Sun, 7 Jul 2024 23:26:40 +0800 Subject: [PATCH] refine formatting in main.test --- tests/cli/main.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/cli/main.test.ts b/tests/cli/main.test.ts index 23b23cb..2676aec 100644 --- a/tests/cli/main.test.ts +++ b/tests/cli/main.test.ts @@ -45,14 +45,16 @@ describe('main', function () { await main({ args, lines, print, quit }); Array.of( + 'lodash.memoize', 'function-bind', 'buffer', + ).forEach(function (pkg, i) { + mock.assertSpyCallArg(print, i, 0, pkg); - }); - mock.assertSpyCalls(print, 3); + }); mock.assertSpyCallArg(quit, 0, 0, 1); mock.assertSpyCalls(quit, 1);