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
Signed-off-by: Dinika Saxena <[email protected]>
  • Loading branch information
Dinika committed Dec 4, 2024
1 parent 09574d7 commit 1deca6b
Show file tree
Hide file tree
Showing 2 changed files with 4 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
1 change: 1 addition & 0 deletions test/node-unit/cli/options.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ describe('options', function () {

result = loadOptions('--no-diff --no-config');
});

it('should return parsed args, default config and package.json', function () {
expect(
result,
Expand Down

0 comments on commit 1deca6b

Please sign in to comment.