Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Trim before testing for equality on unit tests.

  • Loading branch information...
commit 515b82ba7716a5f53773d7778bd5cbff66129915 1 parent def2008
@creationix authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  test/test-commonjs.js
View
2  test/test-commonjs.js
@@ -15,7 +15,7 @@ FILE.glob("test/*.haml").forEach(function(hamlFile) {
var js = Haml.compile(haml);
var js_opt = Haml.optimize(js);
var actual = Haml.execute(js_opt, scope.context, scope.locals);
- ASSERT.equal(actual, expected);
+ ASSERT.equal(actual.trim(), expected.trim());
}
});
Please sign in to comment.
Something went wrong with that request. Please try again.