From 937f83f9f1afc984a3ee786bcf37cb56c226791a Mon Sep 17 00:00:00 2001 From: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Date: Sat, 21 Oct 2023 08:00:41 +0900 Subject: [PATCH] Refactor to remove no longer needed processor fixtures The support for processors was removed (#6479). --- .../fixtures/processor-fenced-blocks.js | 17 --------------- .../processor-triple-question-marks.js | 21 ------------------- 2 files changed, 38 deletions(-) delete mode 100644 lib/__tests__/fixtures/processor-fenced-blocks.js delete mode 100644 lib/__tests__/fixtures/processor-triple-question-marks.js diff --git a/lib/__tests__/fixtures/processor-fenced-blocks.js b/lib/__tests__/fixtures/processor-fenced-blocks.js deleted file mode 100644 index c400f6e7bf..0000000000 --- a/lib/__tests__/fixtures/processor-fenced-blocks.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict'; - -module.exports = function processorFencedBlocks(options = {}) { - const specialMessage = options.specialMessage || 'was processed'; - - return { - code(input) { - const blocks = [...input.matchAll(/```start([\s\S]+?)```end/g)]; - const toLint = blocks.map((match) => match[1]).join('\n\n'); - - return toLint; - }, - result(stylelintResult) { - return { ...stylelintResult, specialMessage }; - }, - }; -}; diff --git a/lib/__tests__/fixtures/processor-triple-question-marks.js b/lib/__tests__/fixtures/processor-triple-question-marks.js deleted file mode 100644 index b26563a022..0000000000 --- a/lib/__tests__/fixtures/processor-triple-question-marks.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict'; - -module.exports = function processorTripleQuestionMarks() { - let found = false; - - return { - code(input) { - const blocks = [...input.matchAll(/\?{3}start([\s\S]+?)\?{3}end/g)]; - const toLint = blocks.map((match) => match[1]).join('\n\n'); - - if (toLint.length > 0) { - found = true; - } - - return toLint; - }, - result(stylelintResult) { - return { ...stylelintResult, tripleQuestionMarkBlocksFound: found }; - }, - }; -};