From 8660ab75916508ae69e0810b73bd8d87fa27f73c Mon Sep 17 00:00:00 2001 From: Kevin Martensson Date: Thu, 15 Jun 2017 16:20:36 +0200 Subject: [PATCH] Add test for `err.response.body` --- test/error.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/error.js b/test/error.js index 0e4bdf0..2f5efb0 100644 --- a/test/error.js +++ b/test/error.js @@ -27,6 +27,7 @@ test('properties', async t => { t.is(err.protocol, 'http:'); t.is(err.url, err.response.requestUrl); t.is(err.headers.connection, 'close'); + t.is(err.response.body, 'not'); }); test('dns message', async t => {