Skip to content

Commit

Permalink
Merge pull request #2349 from scotttrinh/null-form-data
Browse files Browse the repository at this point in the history
Check error type instead of string
  • Loading branch information
simov committed Aug 28, 2016
2 parents 9e17ba4 + 1389216 commit 4d33333
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test-form-data-error.js
Expand Up @@ -75,12 +75,12 @@ tape('form-data should throw on null value', function (t) {
key: null
}
})
}, /Cannot read property 'path' of null/)
}, TypeError)
t.end()
})

tape('cleanup', function(t) {
s.close(function() {
t.end()
})
})
})

0 comments on commit 4d33333

Please sign in to comment.