Skip to content

Commit

Permalink
update error message for new node
Browse files Browse the repository at this point in the history
  • Loading branch information
flotwig committed Jul 23, 2019
1 parent e406957 commit 9dbe872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/test/unit/request_spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ describe "lib/request", ->
.then ->
throw new Error("should have failed")
.catch (err) ->
expect(err.message).to.eq "TypeError: The header content contains invalid characters"
expect(err.message).to.eq "TypeError [ERR_INVALID_CHAR]: Invalid character in header content [\"x-text\"]"

it "handles weird content in the body just fine", ->
request.sendPromise({}, @fn, {
Expand Down

0 comments on commit 9dbe872

Please sign in to comment.