Skip to content

Commit

Permalink
test(gamepad input): wait an extra frame
Browse files Browse the repository at this point in the history
improves reliability
  • Loading branch information
seleb committed Jul 23, 2022
1 parent b30aef2 commit b8c52ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gamepad input.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ async function gamepadPressDown() {
await gamepadSetDownPressed(true);
await waitForFrame();
await gamepadSetDownPressed(false);
await waitForFrame();
}

test('gamepad input', async () => {
Expand Down

0 comments on commit b8c52ac

Please sign in to comment.