Skip to content

Test paddle movement #43

@letakeane

Description

@letakeane
  • Mock mouseEvent as an object with a key of pageX
  • Mock canvas as an object with two keys: offsetLeft and width

Run the movePaddle function and check that the x is changing as expected

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions