Skip to content

Commit

Permalink
Fix tslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kamranayub committed Oct 1, 2016
1 parent d6bea46 commit f3759d7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/engine/Engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ O|===|* >________________>\n\
game.stop();
game.onFatalException(e);
}
}
};
}

/**
Expand Down
8 changes: 4 additions & 4 deletions src/spec/Mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ module Mocks {
screenToWorldCoordinates: ex.Engine.prototype.screenToWorldCoordinates,
addScene: ex.Engine.prototype.addScene,
goToScene: ex.Engine.prototype.goToScene,
emit: function () { },
emit: function () { /* do nothing */ },
eventDispatcher: {
emit: function () { }
emit: function () { /* do nothing */ }
},
_hasStarted: true,
_update: (<any>ex.Engine.prototype)._update,
Expand All @@ -140,7 +140,7 @@ module Mocks {
loop();
}
}
}
};
}

time(): ITime {
Expand All @@ -156,7 +156,7 @@ module Mocks {
now: function () {
return now;
}
}
};
}

window() {
Expand Down
4 changes: 2 additions & 2 deletions src/spec/TimescalingSpec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe('The engine', () => {
// actor moves twice as fast
loop.advance(1100);

expect(actor.x).toBe(10, "actor did not move twice as fast");
expect(actor.x).toBe(10, 'actor did not move twice as fast');

});

Expand All @@ -51,7 +51,7 @@ describe('The engine', () => {
// actor moves twice as slow
loop.advance(2000);

expect(actor.x).toBeCloseTo(5, 0.2, "actor did not move twice as slow");
expect(actor.x).toBeCloseTo(5, 0.2, 'actor did not move twice as slow');

});

Expand Down

0 comments on commit f3759d7

Please sign in to comment.