Skip to content

Commit cf2b406

Browse files
committed
Fixed test typing bug
1 parent efb30a5 commit cf2b406

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/emit.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ it("should return true when there are events to emit", () => {
135135
it("receives the emitted events", done => {
136136
const e = new EventEmitter();
137137

138+
// @ts-ignore
138139
e.on("data", function(a, b, c, d, undef) {
139140
expect(a).toBe("foo");
140141
expect(b).toEqual(e);

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
2828
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
2929
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
30-
"noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
30+
"noImplicitThis": true /* Raise error on 'this' expressions with an implied 'any' type. */,
3131
"alwaysStrict": true /* Parse in strict mode and emit "use strict" for each source file. */,
3232

3333
/* Additional Checks */

0 commit comments

Comments
 (0)