From 57886e66d061c99673553e5d3c697f7916351a8f Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Thu, 28 May 2015 09:43:20 -0400 Subject: [PATCH] JsonResponse test ensure parse error is of type `SyntaxError` Previously `Error`. --- test/dapi/format/JsonResponseTest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/dapi/format/JsonResponseTest.js b/test/dapi/format/JsonResponseTest.js index 9211105..6360562 100644 --- a/test/dapi/format/JsonResponseTest.js +++ b/test/dapi/format/JsonResponseTest.js @@ -62,7 +62,7 @@ describe( 'dapi.format.JsonRepsonse trait', function() _createStubbedDapi( null, 'ERR' ) .request( '', function( err, data ) { - expect( err ).to.be.instanceOf( Error ); + expect( err ).to.be.instanceOf( SyntaxError ); done(); } ); } );