diff --git a/src/_polyfill/events/events.ts b/src/_polyfill/events/events.ts index 8793470..299f070 100644 --- a/src/_polyfill/events/events.ts +++ b/src/_polyfill/events/events.ts @@ -84,7 +84,7 @@ export class EventEmitter implements NodeEventEmitter { static kMaxEventTargetListenersWarned = kMaxEventTargetListenersWarned; // Static utils - static usingDomains = false; // backwards compatibilit + static usingDomains = false; // backwards compatibility static get on() { return on; } diff --git a/src/stream/readable.ts b/src/stream/readable.ts index b9c62e7..362d483 100644 --- a/src/stream/readable.ts +++ b/src/stream/readable.ts @@ -75,7 +75,7 @@ export class Readable extends EventEmitter implements NodeStream.Readable { return this; } - pipe(_destenition: T, _options?: { end?: boolean }): T { + pipe(_destination: T, _options?: { end?: boolean }): T { return {} as T; } diff --git a/test/index.test.ts b/test/index.test.ts index dd74de1..a0c78c9 100644 --- a/test/index.test.ts +++ b/test/index.test.ts @@ -31,7 +31,7 @@ describe("fetchNodeRequestHandler", () => { }); }); - it("heaaders (object)", async () => { + it("headers (object)", async () => { const res = await fetchNodeRequestHandler(echoHandler, "/test", { headers: { foo: "bar", empty: "" }, }); @@ -41,7 +41,7 @@ describe("fetchNodeRequestHandler", () => { }); }); - it("heaaders (Headers)", async () => { + it("headers (Headers)", async () => { const res = await fetchNodeRequestHandler(echoHandler, "/test", { headers: new Headers({ foo: "bar", empty: "" }), }); @@ -51,7 +51,7 @@ describe("fetchNodeRequestHandler", () => { }); }); - it("heaaders (array)", async () => { + it("headers (array)", async () => { const res = await fetchNodeRequestHandler(echoHandler, "/test", { headers: [ ["foo", "bar"],