From 1389216fef386846f5bf5b49f81cf93d5be33f20 Mon Sep 17 00:00:00 2001 From: Scott Trinh Date: Fri, 26 Aug 2016 11:48:56 -0400 Subject: [PATCH] Check error type instead of string Upstream change broke this unit test. --- tests/test-form-data-error.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test-form-data-error.js b/tests/test-form-data-error.js index 7111e033b..09beb317e 100644 --- a/tests/test-form-data-error.js +++ b/tests/test-form-data-error.js @@ -75,7 +75,7 @@ tape('form-data should throw on null value', function (t) { key: null } }) - }, /Cannot read property 'path' of null/) + }, TypeError) t.end() }) @@ -83,4 +83,4 @@ tape('cleanup', function(t) { s.close(function() { t.end() }) -}) \ No newline at end of file +})