Skip to content

Commit

Permalink
Update tests to be more distinct
Browse files Browse the repository at this point in the history
  • Loading branch information
mattxwang committed Oct 7, 2023
1 parent f0840d3 commit 8118835
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ testRule({

reject: [
{
code: 'a { margin-left: 10px; margin-right: 10px; margin-top: 20px; margin-bottom: 30px; }',
fixed: 'a { margin: 20px 10px 30px 10px; }',
code: 'a { margin-left: 40px; margin-right: 10px; margin-top: 20px; margin-bottom: 30px; }',
fixed: 'a { margin: 20px 10px 30px 40px; }',
message: messages.expected('margin'),
line: 1,
column: 62,
Expand Down Expand Up @@ -338,14 +338,14 @@ testRule({
message: messages.expected('place-self'),
},
{
code: 'a { scroll-margin-left: 10px; scroll-margin-right: 10px; scroll-margin-top: 20px; scroll-margin-bottom: 30px; }',
fixed: 'a { scroll-margin: 20px 10px 30px 10px; }',
code: 'a { scroll-margin-left: 40px; scroll-margin-right: 10px; scroll-margin-top: 20px; scroll-margin-bottom: 30px; }',
fixed: 'a { scroll-margin: 20px 10px 30px 40px; }',
description: 'explicit scroll-margin test',
message: messages.expected('scroll-margin'),
},
{
code: 'a { scroll-padding-left: 10px; scroll-padding-right: 10px; scroll-padding-top: 20px; scroll-padding-bottom: 30px; }',
fixed: 'a { scroll-padding: 20px 10px 30px 10px; }',
code: 'a { scroll-padding-left: 40px; scroll-padding-right: 10px; scroll-padding-top: 20px; scroll-padding-bottom: 30px; }',
fixed: 'a { scroll-padding: 20px 10px 30px 40px; }',
description: 'explicit scroll-padding test',
message: messages.expected('scroll-padding'),
},
Expand Down

0 comments on commit 8118835

Please sign in to comment.