From 66abc90cc2e506392cec44cb21de18bcbcb9535f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabio=20Jos=C3=A9?= Date: Tue, 6 Aug 2019 11:14:01 -0300 Subject: [PATCH] Remove ugly test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabio José --- test/spec_0_3_tests.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/test/spec_0_3_tests.js b/test/spec_0_3_tests.js index 70046f8..de7dd83 100644 --- a/test/spec_0_3_tests.js +++ b/test/spec_0_3_tests.js @@ -164,16 +164,6 @@ describe("CloudEvents Spec v0.3", () => { }); describe("'datacontentencoding'", () => { - it("should throw an error when 'data' is not a string", () => { - cloudevent - .dataContentEncoding(dataContentEncoding); - expect(cloudevent.format.bind(cloudevent)) - .to - .throw("invalid payload"); - cloudevent.data(data); - delete cloudevent.spec.payload.datacontentencoding; - }); - it("should throw an error when is a unsupported encoding" , () => { cloudevent .data("Y2xvdWRldmVudHMK")