Skip to content

Commit 5bf34c5

Browse files
MoOxromainmenke
authored andcommitted
update test to ensure postcss 3.0 compatibility
1 parent b0e4ff7 commit 5bf34c5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugins/postcss-custom-media/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"devDependencies": {
2525
"jscs": "^1.6.2",
2626
"jshint": "^2.5.6",
27-
"postcss": "^2.2.5",
27+
"postcss": "^3.0.0",
2828
"tape": "^3.0.0"
2929
},
3030
"scripts": {

plugins/postcss-custom-media/test/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function compareFixtures(t, name, msg, opts, postcssOpts) {
1515
var actual = postcss().use(plugin(opts)).process(read(postcssOpts.from), postcssOpts).css
1616
var expected = read(filename("fixtures/" + name + ".expected"))
1717
fs.writeFile(filename("fixtures/" + name + ".actual"), actual)
18-
t.equal(actual, expected, msg)
18+
t.equal(actual.trim(), expected.trim(), msg)
1919
}
2020

2121
test("@custom-media", function(t) {

0 commit comments

Comments
 (0)