Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Commit dd0b177

Browse files
committed
Stop test breaking my balls when I add a newline at the end
1 parent 3fb1202 commit dd0b177

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var testFeature = function(t, feature, cssnext, version, source, input, expected
2424

2525
// enable only the one we want to test
2626
options.features[feature] = true
27-
t.equal(cssnext(input, options), expected, version + ": should add " + feature + " support")
27+
t.equal(cssnext(input, options).trim(), expected.trim(), version + ": should add " + feature + " support")
2828
}
2929

3030
Object.keys(cssnext.features).forEach(function(name) {
@@ -72,8 +72,8 @@ test("sourcemap", function(t) {
7272
cssnext(
7373
read("sourcemap/input"),
7474
{from: "./test/sourcemap/input.css"}
75-
),
76-
read("sourcemap/expected"),
75+
).trim(),
76+
read("sourcemap/expected").trim(),
7777
"should contain a correct sourcemap"
7878
)
7979

0 commit comments

Comments
 (0)