Skip to content

Commit

Permalink
Fixed test typing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ardalanamini committed Apr 4, 2019
1 parent efb30a5 commit cf2b406
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/emit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit cf2b406

Please sign in to comment.