From b0f50cbed018ddb62f634d52a9e062662fda9b70 Mon Sep 17 00:00:00 2001 From: jomo Date: Tue, 13 Oct 2015 00:51:03 +0200 Subject: [PATCH] print base64 encoded body if CRC does not match --- test/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test.js b/test/test.js index 0c6406d..f909cdc 100644 --- a/test/test.js +++ b/test/test.js @@ -799,7 +799,7 @@ describe("Crafatar", function() { try { assert.ok(matches); } catch(e) { - throw new Error(crc(body) + " != " + location.crc32); + throw new Error(crc(body) + " != " + location.crc32 + " | " + body.toString("base64")); } assert.strictEqual(res.headers.location, location.redirect); if (location.etag === undefined) {