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

Updated tests #26

Merged
merged 1 commit into from
Jul 9, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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()
})