diff --git a/docs/developer-guide/rule-testers.md b/docs/developer-guide/rule-testers.md index 732a23f9b9..7853cb67f2 100644 --- a/docs/developer-guide/rule-testers.md +++ b/docs/developer-guide/rule-testers.md @@ -10,8 +10,6 @@ When developing plugins, you can use the following rule testers or create your o - stylelint-test-rule-mocha - stylelint-test-rule-ava -The rule tester used within the stylelint codebase is at `lib/testUtils/testRule.js`. (It is the same as `stylelint-test-rule-tape`.) - ## Using a rule tester To use the rule tester of your choice, do the following: diff --git a/lib/testUtils/testRule.js b/lib/testUtils/testRule.js deleted file mode 100644 index 8650dfc29d..0000000000 --- a/lib/testUtils/testRule.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict" - -const createRuleTester = require("./createRuleTester") -const test = require("tape") - -// This code is included here instead of using stylelint-test-rule-tape -// because tests performs significantly faster this way -function assertEquality(processCss, context) { - const testFn = context.only ? test.only : test - testFn(context.caseDescription, t => { - t.plan(context.comparisonCount) - processCss.then(comparisons => { - comparisons.forEach((comparison) => { - t.equal(comparison.actual, comparison.expected, comparison.description) - }) - }) - }) -} - -module.exports = createRuleTester(assertEquality)