test: trim whitespace before matching (#532)

Avoid testing whitespace in strictEquals.
This commit is contained in:
Johan Bergström
2017-07-20 17:40:53 +02:00
committed by Yoshua Wuyts
parent 011fb735d2
commit b157fba413
+1 -1
View File
@@ -12,6 +12,6 @@ tape('should render on the server', function (t) {
}) })
var res = app.toString('/') var res = app.toString('/')
var exp = '<p>Hello filthy planet</p>' var exp = '<p>Hello filthy planet</p>'
t.equal(res.toString(), exp, 'result was OK') t.equal(res.toString().trim(), exp, 'result was OK')
t.end() t.end()
}) })