From 9dbe872bf12939dfb57f316edc8908610e196c03 Mon Sep 17 00:00:00 2001 From: Zach Bloomquist Date: Tue, 23 Jul 2019 10:15:13 -0400 Subject: [PATCH] update error message for new node --- packages/server/test/unit/request_spec.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/test/unit/request_spec.coffee b/packages/server/test/unit/request_spec.coffee index 2352ee0bdda2..70595663c894 100644 --- a/packages/server/test/unit/request_spec.coffee +++ b/packages/server/test/unit/request_spec.coffee @@ -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, {