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 +})