Skip to content

Commit

Permalink
Merge pull request madeleineostoja#11 from schelmo/master
Browse files Browse the repository at this point in the history
add a test for !important ( madeleineostoja#10 )
  • Loading branch information
Sean King authored Apr 30, 2018
2 parents d42acc2 + a0fd1ee commit 76a4586
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/fixtures/important.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.foo {
border: 1px solid rgba(#f00, 0.2) !important;
color: rgba(#f00,.2) !important;
}
4 changes: 4 additions & 0 deletions test/fixtures/important.expected.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.foo {
border: 1px solid rgba(255,0,0, 0.2) !important;
color: rgba(255,0,0,.2) !important;
}
2 changes: 2 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,6 @@ describe('postcss-hexrgba', () => {

it('handles complex statements', done => test('complex', {}, done));

it('preservers !important', done => test('important', {}, done));

});

0 comments on commit 76a4586

Please sign in to comment.