From b157fba4130e249fe8b7c5073cdd388107507351 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Bergstr=C3=B6m?= Date: Thu, 20 Jul 2017 11:40:53 -0400 Subject: [PATCH] test: trim whitespace before matching (#532) Avoid testing whitespace in strictEquals. --- test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.js b/test.js index 36f2f94..e16f5b0 100644 --- a/test.js +++ b/test.js @@ -12,6 +12,6 @@ tape('should render on the server', function (t) { }) var res = app.toString('/') var exp = '

Hello filthy planet

' - t.equal(res.toString(), exp, 'result was OK') + t.equal(res.toString().trim(), exp, 'result was OK') t.end() })