From 2c808680582512824ac6f22a45e287f01d8623b6 Mon Sep 17 00:00:00 2001 From: Brett Jankord Date: Wed, 29 Jun 2016 06:33:19 -0500 Subject: [PATCH] Update tests --- CHANGELOG.md | 1 + __tests__/index.js | 19 +++++-------------- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f609089..0ef36d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ - Fixed: `max-nesting-depth` rule set to 1 to match Sass Guidelines NestingDepth max_depth: 1 rule - Fixed: Cleaned up comments in `failing-test-case.scss` - Fixed: Declaration order now sorted alphabetically in `passing-test-case.scss` +- Fixed: Updated tests to account for new rules - Removed: `block-closing-brace-newline-after` rule - Removed: `no-extra-semicolons` rule - Removed: `string-no-newline` rule diff --git a/__tests__/index.js b/__tests__/index.js index a25b068..41503c9 100644 --- a/__tests__/index.js +++ b/__tests__/index.js @@ -15,8 +15,8 @@ const validCss = ( .selector-baz[type='text'] { background: linear-gradient(#fff, rgba(0, 0, 0, 0.8)); box-sizing: border-box; - display: block; color: #333; + display: block; } .selector-a, @@ -48,26 +48,17 @@ const validCss = ( /* Flush single line comment */ @media screen and (min-resolution: 192dpi), screen and (min-resolution: 2dppx) { .selector { - background-image: - repeating-linear-gradient( - -45deg, - transparent, - #fff 25px, - rgba(255, 255, 255, 1) 50px - ); + background-image: repeating-linear-gradient(-45deg, transparent, #fff 25px, rgba(255, 255, 255, 1) 50px); + box-shadow: 0 1px 1px #000, 0 1px 0 #fff, 2px 2px 1px 1px #ccc inset; + height: 10rem; margin: 10px; margin-bottom: 5px; - box-shadow: - 0 1px 1px #000, - 0 1px 0 #fff, - 2px 2px 1px 1px #ccc inset; - height: 10rem; } /* Flush nested single line comment */ .selector::after { - content: '→'; background-image: url('x.svg'); + content: '→'; } }