Skip to content

Commit

Permalink
fix: misspelled word (#115)
Browse files Browse the repository at this point in the history
Signed-off-by: Helio Frota <00hf11@gmail.com>
  • Loading branch information
helio-frota authored May 2, 2020
1 parent f30c814 commit 53524ac
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const v1 = require("cloudevents-sdk/v1");
*/
let myevent = v1.event()
.type("com.github.pull.create")
.source("urn:event:from:myapi/resourse/123");
.source("urn:event:from:myapi/resource/123");
```

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

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

// The binding configuration using POST
let config = {
Expand Down
2 changes: 1 addition & 1 deletion test/bindings/http/receiver_binary_1_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ describe("HTTP Transport Binding Binary Receiver for CloudEvents v1.0", () => {

it("Should accept 'extension1'", () => {
// setup
const extension1 = "mycuston-ext1";
const extension1 = "mycustom-ext1";
const payload = {
data: "dataString"
};
Expand Down
6 changes: 3 additions & 3 deletions test/bindings/http/receiver_structured_1_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const HTTPStructuredReceiver =
const receiver = new HTTPStructuredReceiver();

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

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

it("Should accept 'extension1'", () => {
// setup
const extension1 = "mycuston-ext1";
const extension1 = "mycustom-ext1";
const payload = v1.event()
.type(type)
.source(source)
Expand All @@ -154,7 +154,7 @@ describe("HTTP Transport Binding Structured Receiver for CloudEvents v1.0",
.to.equal(extension1);
});

it("Should parse 'data' stringfied json to json object", () => {
it("Should parse 'data' stringified json to json object", () => {
// setup
const payload = v1.event()
.type(type)
Expand Down
2 changes: 1 addition & 1 deletion test/http_binding_1.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const {
} = require("../v1/index.js");

const type = "com.github.pull.create";
const source = "urn:event:from:myapi/resourse/123";
const source = "urn:event:from:myapi/resource/123";
const contentType = "application/cloudevents+json; charset=utf-8";
const now = new Date();
const dataschema = "http://cloudevents.io/schema.json";
Expand Down
6 changes: 3 additions & 3 deletions test/spec_1_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { asBase64 } = require("../lib/utils/fun.js");

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

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

it("should throw an erro when is empty", () => {
it("should throw an error when is empty", () => {
cloudevent.spec.payload.id = "";
expect(cloudevent.format.bind(cloudevent))
.to
Expand Down

0 comments on commit 53524ac

Please sign in to comment.