Skip to content

Commit

Permalink
Adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
niksy committed Sep 9, 2021
1 parent 4efd93b commit 7c6e64a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rules/no-global-function-names/__tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,9 @@ testRule(rule, {
`,
line: 3,
column: 21,
message: messages.rejected("lighten"),
message: messages.rejectedFullMessage(
"Expected color.adjust($color, $lightness: $amount) instead of lighten($color, $amount)"
),
description: "lighten"
}
]
Expand Down
1 change: 1 addition & 0 deletions src/rules/no-global-function-names/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ const rule_mapping = {
export const ruleName = namespace("no-global-function-names");

export const messages = utils.ruleMessages(ruleName, {
rejectedFullMessage: string => string,
rejected: name => errorMessage(name)
});

Expand Down

0 comments on commit 7c6e64a

Please sign in to comment.