From cf2b4066f06bcbfdb2266989f8bea1cab7f6b2aa Mon Sep 17 00:00:00 2001 From: Ardalan Amini Date: Thu, 4 Apr 2019 10:06:52 +0430 Subject: [PATCH] Fixed test typing bug --- tests/emit.ts | 1 + tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/emit.ts b/tests/emit.ts index 7864f04..24f9edc 100644 --- a/tests/emit.ts +++ b/tests/emit.ts @@ -135,6 +135,7 @@ it("should return true when there are events to emit", () => { it("receives the emitted events", done => { const e = new EventEmitter(); + // @ts-ignore e.on("data", function(a, b, c, d, undef) { expect(a).toBe("foo"); expect(b).toEqual(e); diff --git a/tsconfig.json b/tsconfig.json index 9e8a1e0..1ca2914 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -27,7 +27,7 @@ // "strictFunctionTypes": true, /* Enable strict checking of function types. */ // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */ // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */ - "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ + "noImplicitThis": true /* Raise error on 'this' expressions with an implied 'any' type. */, "alwaysStrict": true /* Parse in strict mode and emit "use strict" for each source file. */, /* Additional Checks */