Skip to content

Commit

Permalink
test: use proper Buffer.from()
Browse files Browse the repository at this point in the history
  • Loading branch information
dbushong committed Sep 20, 2019
1 parent d869ea6 commit 0e77ee5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/request-body.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('fetch: sending a body', () => {
return this.skip();
}
return client
.echo({ body: new Buffer('I💖🍕'), method: 'PUT' })
.echo({ body: Buffer.from('I💖🍕'), method: 'PUT' })
.then(echo => {
assert.equal('PUT', echo.method);
assert.equal('9', echo.headers['content-length']);
Expand Down

0 comments on commit 0e77ee5

Please sign in to comment.