Skip to content

Commit

Permalink
tests: css custom variables (#709)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi committed May 2, 2018
1 parent df497db commit 3de8aa7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/moduleMinimizeTestCases/custom-variables/expected.css
@@ -0,0 +1 @@
:root{--foo:1px;--bar:2px}
4 changes: 4 additions & 0 deletions test/moduleMinimizeTestCases/custom-variables/source.css
@@ -0,0 +1,4 @@
:root {
--foo: 1px;
--bar: 2px;
}
3 changes: 3 additions & 0 deletions test/simpleTest.js
Expand Up @@ -38,6 +38,9 @@ describe("simple", function() {
test("charset directive", "@charset \"UTF-8\";\n .class { a: b c d; }", [
[1, "@charset \"UTF-8\";\n .class { a: b c d; }", ""]
]);
test("custom variables", ":root {--foo: 1px;\n--bar: 2px;}", [
[1, ":root {--foo: 1px;\n--bar: 2px;}", ""]
]);
testError("error formatting", ".some {\n invalid css;\n}", function(err) {
assert.equal(err.message, [
'Unknown word (2:2)',
Expand Down

0 comments on commit 3de8aa7

Please sign in to comment.