Skip to content

Commit 382d52f

Browse files
committed
Simplify prefer-power-assert tests
Remove js-combinatorics which has stopped supporting CJS. It's not necessary to test this number of permutations, some of which are not even supported by AVA.
1 parent 6750b76 commit 382d52f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
"eslint-ava-rule-tester": "^4.0.0",
5151
"eslint-plugin-eslint-plugin": "^2.3.0",
5252
"execa": "^4.0.2",
53-
"js-combinatorics": "^0.6.1",
5453
"listr": "^0.14.3",
5554
"outdent": "^0.7.1",
5655
"pify": "^5.0.0",

test/prefer-power-assert.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const test = require('ava');
22
const avaRuleTester = require('eslint-ava-rule-tester');
3-
const {permutationCombination} = require('js-combinatorics');
43
const rule = require('../rules/prefer-power-assert');
54

65
const ruleTester = avaRuleTester(test, {
@@ -92,8 +91,8 @@ function testWithModifier(modifier) {
9291
});
9392
}
9493

95-
for (const modifiers of permutationCombination(['skip', 'only', 'cb', 'serial']).toArray()) {
96-
testWithModifier(modifiers.join('.'));
94+
for (const modifiers of ['skip', 'only', 'cb', 'serial']) {
95+
testWithModifier(modifiers);
9796
}
9897

9998
function testDeclaration(declaration) {

0 commit comments

Comments
 (0)