Skip to content

Commit

Permalink
fix(coverage): add /* istanbul ignore */ comments
Browse files Browse the repository at this point in the history
  • Loading branch information
niklashigi committed Dec 25, 2017
1 parent 12dca3d commit fb231d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/inputs/mouse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ export class Mouse {
}

/** Returns whether the passed in button is currently pressed. */
public isPressed(button: MouseButton = MouseButton.Left) {
public isPressed(/* istanbul ignore next */ button: MouseButton = MouseButton.Left) {
return this.pressedButtons.has(button)
}

/** Returns whether the passed in mouse button was pressed. */
public wasPressed(button: MouseButton = MouseButton.Left) {
public wasPressed(/* istanbul ignore next */ button: MouseButton = MouseButton.Left) {
if (this.queuedButtons.has(button)) {
this.queuedButtons.delete(button)
return true
Expand Down

0 comments on commit fb231d8

Please sign in to comment.