Skip to content

Commit

Permalink
try timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Dahan committed Mar 10, 2019
1 parent 8f55ff2 commit 1597b15
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions test/fixtures/handles-keypresses.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,15 @@ const KeypressTest = () => {
};

const app = render(<KeypressTest/>);
input.split('').forEach(letter => process.stdin.write(letter));
input.split('').forEach(letter => {
process.stdin.write(letter);
});

app.waitUntilExit().then(() => console.log('exited'));
setTimeout(() => app.unmount(), 500);

setInterval(() => {
throw new Error(`${hits}`);
if (hits.length > 25) {
app.unmount();
}
}, 500);

0 comments on commit 1597b15

Please sign in to comment.