We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb33a8a commit b211960Copy full SHA for b211960
test/http_binding_0_1.js
@@ -7,6 +7,8 @@ const source = "urn:event:from:myapi/resourse/123";
7
const webhook = "https://cloudevents.io/webhook";
8
const contentType = "application/cloudevents+json; charset=utf-8";
9
10
+const HTTPBinding = Cloudevent.bindings["http-structured0.1"];
11
+
12
var cloudevent = new Cloudevent()
13
.type(type)
14
.source(source);
@@ -16,8 +18,7 @@ var httpcfg = {
16
18
url : webhook + "/json"
17
19
};
20
-var httpstructured01 =
- new Cloudevent.bindings["http-structured0.1"](httpcfg);
21
+var httpstructured01 = new HTTPBinding(httpcfg);
22
23
describe("HTTP Transport Binding - Version 0.1", () => {
24
beforeEach(() => {
0 commit comments