Skip to content

Commit

Permalink
fix test: querystring.parse has no proto
Browse files Browse the repository at this point in the history
  • Loading branch information
feross committed May 15, 2020
1 parent a31bbbb commit f60217f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,8 @@ test('post (json body)', function (t) {
test('post (form, object)', function (t) {
t.plan(5)

var formData = {
foo: 'bar'
}
var formData = Object.create(null)
formData.foo = 'bar'

var server = http.createServer(function (req, res) {
t.equal(req.method, 'POST')
Expand Down

0 comments on commit f60217f

Please sign in to comment.