Skip to content

Commit

Permalink
chore(internal): rename flaggedTest to flaggedIt
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed May 15, 2020
1 parent 06f5ff9 commit 7e6c04d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/mocha/src/flag.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function isSkipped({ flags, total, isDeactivated }) {
return !isDeactivated && flags.length && !areAllFlagsPresent(flags, total);
}

function flaggedTest(total, isDeactivated) {
function flaggedIt(total, isDeactivated) {
return it => {
return function flaggedTest(stringOrObject, callback) {
let { name, flags } = infoFor(stringOrObject);
Expand Down Expand Up @@ -137,9 +137,9 @@ function flaggedDescribe(total, isDeactivated) {
}

function createIt(it, flags, isDeactivated) {
let _flaggedTest = flaggedTest(flags, isDeactivated);
let _flaggedIt = flaggedIt(flags, isDeactivated);

let _it = wrap(it, _flaggedTest);
let _it = wrap(it, _flaggedIt);

return _it;
}
Expand Down

0 comments on commit 7e6c04d

Please sign in to comment.