From 88076edc07eb8edf55955c8afd624cfbe80a9513 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabio=20Jos=C3=A9?= Date: Sat, 15 Dec 2018 13:05:46 -0200 Subject: [PATCH] camel case MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabio José --- test/cloudevent_spec_0_2.js | 2 +- test/http_binding_0_1.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/cloudevent_spec_0_2.js b/test/cloudevent_spec_0_2.js index e7d52a1..af751d9 100644 --- a/test/cloudevent_spec_0_2.js +++ b/test/cloudevent_spec_0_2.js @@ -9,7 +9,7 @@ const contenttype = "application/json"; const data = {}; const extensions = {}; -var cloudevent = new Cloudevent(Cloudevent.specs['0.2']) +var cloudevent = new Cloudevent(Cloudevent.specs["0.2"]) .type(type) .source(source); diff --git a/test/http_binding_0_1.js b/test/http_binding_0_1.js index 4b58155..1e2fefb 100644 --- a/test/http_binding_0_1.js +++ b/test/http_binding_0_1.js @@ -16,7 +16,7 @@ var httpcfg = { url : webhook + "/json" }; -var httpstructured_0_1 = +var httpstructured01 = new Cloudevent.bindings["http-structured0.1"](httpcfg); describe("HTTP Transport Binding - Version 0.1", () => { @@ -30,7 +30,7 @@ describe("HTTP Transport Binding - Version 0.1", () => { describe("Structured", () => { describe("JSON Format", () => { it("requires '" + contentType + "' Content-Type in header", () => { - return httpstructured_0_1.emit(cloudevent) + return httpstructured01.emit(cloudevent) .then(response => { expect(response.config.headers["Content-Type"]) .to.equal(contentType); @@ -38,7 +38,7 @@ describe("HTTP Transport Binding - Version 0.1", () => { }); it("the request should be correct", () => { - return httpstructured_0_1.emit(cloudevent) + return httpstructured01.emit(cloudevent) .then(response => { expect(JSON.parse(response.config.data)) .to.deep.equal(cloudevent.format());