From 7e6c04dcc25d236846acee19f73a1e397a692087 Mon Sep 17 00:00:00 2001 From: NullVoxPopuli Date: Fri, 15 May 2020 12:41:14 -0400 Subject: [PATCH] chore(internal): rename flaggedTest to flaggedIt --- packages/mocha/src/flag.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/mocha/src/flag.js b/packages/mocha/src/flag.js index 53d6e8b77..8d7e14aca 100644 --- a/packages/mocha/src/flag.js +++ b/packages/mocha/src/flag.js @@ -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); @@ -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; }