8000 fix: misspelled word (#115) · lance/sdk-javascript@53524ac · GitHub
[go: up one dir, main page]

Skip to content

Commit 53524ac

Browse files
authored
fix: misspelled word (cloudevents#115)
Signed-off-by: Helio Frota <00hf11@gmail.com>
1 parent f30c814 commit 53524ac

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ const v1 = require("cloudevents-sdk/v1");
121121
*/
122122
let myevent = v1.event()
123123
.type("com.github.pull.create")
124-
.source("urn:event:from:myapi/resourse/123");
124+
.source("urn:event:from:myapi/resource/123");
125125
```
126126

127127
#### Formatting
@@ -134,7 +134,7 @@ const v1 = require("cloudevents-sdk/v1");
134134
*/
135135
let myevent = v1.event()
136136
.type("com.github.pull.create")
137-
.source("urn:event:from:myapi/resourse/123");
137+
.source("urn:event:from:myapi/resource/123");
138138

139139
/*
140140
* Format the payload and return it
@@ -152,7 +152,7 @@ const v1 = require("cloudevents-sdk/v1");
152152
*/
153153
let myevent = v1.event()
154154
.type("com.github.pull.create")
155-
.source("urn:event:from:myapi/resourse/123");
155+
.source("urn:event:from:myapi/resource/123");
156156

157157
// The binding configuration using POST
158158
let config = {

test/bindings/http/receiver_binary_1_tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ describe("HTTP Transport Binding Binary Receiver for CloudEvents v1.0", () => {
430430

431431
it("Should accept 'extension1'", () => {
432432
// setup
433-
const extension1 = "mycuston-ext1";
433+
const extension1 = "mycustom-ext1";
434434
const payload = {
435435
data: "dataString"
436436
};

test/bindings/http/receiver_structured_1_test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const HTTPStructuredReceiver =
1010
const receiver = new HTTPStructuredReceiver();
1111

1212
const type = "com.github.pull.create";
13-
const source = "urn:event:from:myapi/resourse/123";
13+
const source = "urn:event:from:myapi/resource/123";
1414
const now = new Date();
1515
const dataschema = "http://cloudevents.io/schema.json";
1616

@@ -130,7 +130,7 @@ describe("HTTP Transport Binding Structured Receiver for CloudEvents v1.0",
130130

131131
it("Should accept 'extension1'", () => {
132132
// setup
133-
const extension1 = "mycuston-ext1";
133+
const extension1 = "mycustom-ext1";
134134
const payload = v1.event()
135135
.type(type)
136136
.source(source)
@@ -154,7 +154,7 @@ describe("HTTP Transport Binding Structured Receiver for CloudEvents v1.0",
154154
.to.equal(extension1);
155155
});
156156

157-
it("Should parse 'data' stringfied json to json object", () => {
157+
it("Should parse 'data' stringified json to json object", () => {
158158
// setup
159159
const payload = v1.event()
160160
.type(type)

test/http_binding_1.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const {
1111
} = require("../v1/index.js");
1212

1313
const type = "com.github.pull.create";
14-
const source = "urn:event:from:myapi/resourse/123";
14+
const source = "urn:event:from:myapi/resource/123";
1515
const contentType = "application/cloudevents+json; charset=utf-8";
1616
const now = new Date();
1717
const dataschema = "http://cloudevents.io/schema.json";

test/spec_1_tests.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const { asBase64 } = require("../lib/utils/fun.js");
66

77
const id = uuidv4();
88
const type = "com.github.pull.create";
9-
const source = "urn:event:from:myapi/resourse/123";
9+
const source = "urn:event:from:myapi/resource/123";
1010
const time = new Date();
1111
const dataschema = "http://example.com/registry/myschema.json";
1212
const dataContentType = "application/json";
@@ -63,7 +63,7 @@ describe("CloudEvents Spec v1.0", () => {
6363
});
6464
});
6565

66-
describe("Extenstions Constraints", () => {
66+
describe("Extensions Constraints", () => {
6767
it("should be ok when type is 'boolean'", () => {
6868
cloudevent.addExtension("ext-boolean", true);
6969
expect(cloudevent.spec.payload["ext-boolean"])
@@ -126,7 +126,7 @@ describe("CloudEvents Spec v1.0", () => {
126126
cloudevent.spec.payload.id = id;
127127
});
128128

129-
it("should throw an erro when is empty", () => {
129+
it("should throw an error when is empty", () => {
130130
cloudevent.spec.payload.id = "";
131131
expect(cloudevent.format.bind(cloudevent))
132132
.to

0 commit comments

Comments
 (0)
0