Skip to content

Commit

Permalink
test: add test for !isStandardSyntaxFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
gnuletik committed Feb 4, 2022
1 parent 2084302 commit bcfed7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions lib/rules/function-no-unknown/__tests__/index.js
Expand Up @@ -17,6 +17,9 @@ testRule({
{
code: 'a { transform: scale(0.5) translate(-100%, -100%); }',
},
{
code: 'a { $list: (list) }',
},
],

reject: [
Expand Down
4 changes: 2 additions & 2 deletions lib/rules/function-no-unknown/index.js
Expand Up @@ -42,11 +42,11 @@ const rule = (primary) => {
return;
}

if (isCustomFunction(node.value)) {
if (!isStandardSyntaxFunction(node)) {
return;
}

if (!isStandardSyntaxFunction(node)) {
if (isCustomFunction(node.value)) {
return;
}

Expand Down

0 comments on commit bcfed7b

Please sign in to comment.