From 12e7ac5d378e5e43c9167c32d12ca3e5297063b2 Mon Sep 17 00:00:00 2001 From: Dinika Saxena Date: Wed, 4 Dec 2024 11:55:18 +0100 Subject: [PATCH] Add an "it" block for each flag for easier debug-ability --- test/node-unit/cli/mocha-flags.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/node-unit/cli/mocha-flags.spec.js b/test/node-unit/cli/mocha-flags.spec.js index dbd56334b2..29647dea05 100644 --- a/test/node-unit/cli/mocha-flags.spec.js +++ b/test/node-unit/cli/mocha-flags.spec.js @@ -7,9 +7,9 @@ const { describe('mocha-flags', function () { describe('expectedTypeForFlag()', function () { - it('returns expected type for all mocha flags', function () { - Object.entries(types).forEach(([dataType, flags]) => { - flags.forEach(flag => { + Object.entries(types).forEach(([dataType, flags]) => { + flags.forEach(flag => { + it(`returns expected ${flag}'s type as ${dataType}`, function () { expect(expectedTypeForFlag(flag), 'to equal', dataType); }); });