test: trim whitespace before matching (#532)
Avoid testing whitespace in strictEquals.
This commit is contained in:
committed by
Yoshua Wuyts
parent
011fb735d2
commit
b157fba413
@@ -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()
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user