Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor
lib/utils/__tests__/*
test files to migrate to ESM (#7022)
- `.js` -> `.mjs` - `require` -> `import`
- Loading branch information
1 parent
2ffa442
commit 1d145f9
Showing
66 changed files
with
118 additions
and
238 deletions.
There are no files selected for viewing
9 changes: 4 additions & 5 deletions
9
lib/utils/__tests__/checkAgainstRule.test.js → ...utils/__tests__/checkAgainstRule.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...__tests__/functionArgumentsSearch.test.js → ..._tests__/functionArgumentsSearch.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
lib/utils/__tests__/getDimension.test.js → lib/utils/__tests__/getDimension.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
...__tests__/getFormatterOptionsText.test.js → ..._tests__/getFormatterOptionsText.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
...ls/__tests__/getImportantPosition.test.js → ...s/__tests__/getImportantPosition.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
..._/getNextNonSharedLineCommentNode.test.js → .../getNextNonSharedLineCommentNode.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
...tPreviousNonSharedLineCommentNode.test.js → ...PreviousNonSharedLineCommentNode.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
lib/utils/__tests__/getSchemeFromUrl.test.js → ...utils/__tests__/getSchemeFromUrl.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
lib/utils/__tests__/hasBlock.test.js → lib/utils/__tests__/hasBlock.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
lib/utils/__tests__/hasEmptyLine.test.js → lib/utils/__tests__/hasEmptyLine.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
lib/utils/__tests__/hasInterpolation.test.js → ...utils/__tests__/hasInterpolation.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
lib/utils/__tests__/isAfterComment.test.js → lib/utils/__tests__/isAfterComment.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
..._tests__/isAfterSingleLineComment.test.js → ...tests__/isAfterSingleLineComment.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
lib/utils/__tests__/isAutoprefixable.test.js → ...utils/__tests__/isAutoprefixable.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
...ocklessAtRuleAfterBlocklessAtRule.test.js → ...cklessAtRuleAfterBlocklessAtRule.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
...tRuleAfterSameNameBlocklessAtRule.test.js → ...RuleAfterSameNameBlocklessAtRule.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
...__/isContextFunctionalPseudoClass.test.js → ..._/isContextFunctionalPseudoClass.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
...sCounterIncrementCustomIdentValue.test.js → ...CounterIncrementCustomIdentValue.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
...__/isCounterResetCustomIdentValue.test.js → ..._/isCounterResetCustomIdentValue.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
lib/utils/__tests__/isCustomElement.test.js → lib/utils/__tests__/isCustomElement.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
lib/utils/__tests__/isCustomFunction.test.js → ...utils/__tests__/isCustomFunction.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
...tils/__tests__/isCustomMediaQuery.test.js → ...ils/__tests__/isCustomMediaQuery.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
lib/utils/__tests__/isCustomProperty.test.js → ...utils/__tests__/isCustomProperty.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
lib/utils/__tests__/isCustomSelector.test.js → ...utils/__tests__/isCustomSelector.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
lib/utils/__tests__/isFirstNested.test.js → lib/utils/__tests__/isFirstNested.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
lib/utils/__tests__/isKeyframeRule.test.js → lib/utils/__tests__/isKeyframeRule.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
...tils/__tests__/isKeyframeSelector.test.js → ...ils/__tests__/isKeyframeSelector.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
lib/utils/__tests__/isMathFunction.test.js → lib/utils/__tests__/isMathFunction.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
...ls/__tests__/isNonNegativeInteger.test.js → ...s/__tests__/isNonNegativeInteger.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
lib/utils/__tests__/isNumbery.test.js → lib/utils/__tests__/isNumbery.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
lib/utils/__tests__/isOnlyWhitespace.test.js → ...utils/__tests__/isOnlyWhitespace.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
lib/utils/__tests__/isScssVariable.test.js → lib/utils/__tests__/isScssVariable.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
...ils/__tests__/isSharedLineComment.test.js → ...ls/__tests__/isSharedLineComment.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
...tils/__tests__/isSingleLineString.test.js → ...ils/__tests__/isSingleLineString.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 5 additions & 7 deletions
12
.../__tests__/isStandardSyntaxAtRule.test.js → ...__tests__/isStandardSyntaxAtRule.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
...s__/isStandardSyntaxColorFunction.test.js → ...__/isStandardSyntaxColorFunction.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
...ests__/isStandardSyntaxCombinator.test.js → ...sts__/isStandardSyntaxCombinator.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 5 additions & 7 deletions
12
...__tests__/isStandardSyntaxComment.test.js → ..._tests__/isStandardSyntaxComment.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 5 additions & 7 deletions
12
...sts__/isStandardSyntaxDeclaration.test.js → ...ts__/isStandardSyntaxDeclaration.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
..._tests__/isStandardSyntaxFunction.test.js → ...tests__/isStandardSyntaxFunction.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
..._tests__/isStandardSyntaxHexColor.test.js → ...tests__/isStandardSyntaxHexColor.test.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.