Skip to content

Commit

Permalink
chore: fix createCoreRuleConfigs import in test
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Feb 27, 2024
1 parent 0889b43 commit 1d890c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/tools/config-rule.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
//------------------------------------------------------------------------------

const assert = require("chai").assert,
{ generateConfigsFromSchema } = require("../../tools/config-rule"),
{ createCoreRuleConfigs, generateConfigsFromSchema } = require("../../tools/config-rule"),
builtInRules = require("../../lib/rules"),
schema = require("../fixtures/config-rule/schemas");

Expand Down Expand Up @@ -291,7 +291,7 @@ describe("ConfigRule", () => {

describe("createCoreRuleConfigs()", () => {

const rulesConfig = ConfigRule.createCoreRuleConfigs();
const rulesConfig = createCoreRuleConfigs();

it("should create a rulesConfig containing all core rules", () => {
const
Expand All @@ -309,7 +309,7 @@ describe("ConfigRule", () => {
return !isDeprecated;
})
.map(([id]) => id),
actualRules = Object.keys(ConfigRule.createCoreRuleConfigs(true));
actualRules = Object.keys(createCoreRuleConfigs(true));

assert.sameMembers(actualRules, expectedRules);

Expand Down

0 comments on commit 1d890c2

Please sign in to comment.