Skip to content

Commit

Permalink
Add an "it" block for each flag for easier debug-ability
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinika committed Dec 4, 2024
1 parent 09574d7 commit 12e7ac5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/node-unit/cli/mocha-flags.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});
Expand Down

0 comments on commit 12e7ac5

Please sign in to comment.