Skip to content
This repository has been archived by the owner on Jun 6, 2022. It is now read-only.

Commit

Permalink
Merge pull request #26 from Semigradsky/tests
Browse files Browse the repository at this point in the history
Updated tests
  • Loading branch information
MoOx committed Jul 9, 2015
2 parents d4a9e2d + ee42cbb commit 82b157d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
5 changes: 5 additions & 0 deletions test/fixtures/multiple/input.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@custom-selector :--foo .foo;

:--foo, :--foo.bar {
color: white;
}
3 changes: 3 additions & 0 deletions test/fixtures/multiple/output.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.foo, .foo.bar {
color: white;
}
4 changes: 2 additions & 2 deletions test/fixtures/similar-matches/input.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
@custom-selector :--foo h1;
@custom-selector :--foo-bar-baz h4 h5 h6;
@custom-selector :--foo-bar-baz h4, h5, h6;

:--foo {
color: red;
}

:--foo-bar-baz {
:--foo-bar-baz > span {
color: blue;
}

Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/similar-matches/output.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ h1 {
color: red;
}

h4 h5 h6 {
h4 > span, h5 > span, h6 > span {
color: blue;
}

Expand Down
2 changes: 2 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,7 @@ test("@custom-selector", function(t) {
}
})

compareFixtures(t, "multiple", "Should transform multiple selectors")

t.end()
})

0 comments on commit 82b157d

Please sign in to comment.