Skip to content
Browse files

Trim before testing for equality on unit tests.

  • Loading branch information...
1 parent def2008 commit 515b82ba7716a5f53773d7778bd5cbff66129915 @creationix committed Jan 23, 2010
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());
}
});

0 comments on commit 515b82b

Please sign in to comment.
Something went wrong with that request. Please try again.