Skip to content

Commit 2a0c963

Browse files
authored
Update util.js
1 parent 1331ed8 commit 2a0c963

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

util.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@ exports.getTestModifier = (node, mod) => {
6161
};
6262

6363
/**
64-
* Removes given test-modifier from the source surrounding the given node
64+
* Removes a given test-modifier from the source surrounding the given node
6565
*
6666
* @param {string} params.modifier - Name of the modifier
67-
* @param {Node} params.node - Estree-node as provided by Eslint
68-
* @param {Context} params.context - Eslint-context as provided
67+
* @param {Node} params.node - ESTree-node as provided by Eslint
68+
* @param {Context} params.context - ESLint-context as provided
6969
*
7070
* @return {Array} Compound parameters to be used as arguments for `fix.replaceTextRange()`
7171
*/
72-
exports.removeTestModifier = function (params) {
72+
exports.removeTestModifier = params => {
7373
const modifier = params.modifier.trim();
7474
const range = exports.getTestModifier(params.node, modifier).range.slice();
7575
const replacementRegExp = new RegExp(`\\.|${modifier}`, 'g');

0 commit comments

Comments
 (0)