Create 3 promises:
- The
firstPromiseshould be- resolved with a message
First promise was resolvedon a leftclickin thedocument - rejected with a message
First promise was rejectedin 3 seconds if not clicked
- resolved with a message
- The
secondPromiseshould be:- resolved only on
leftorrightclick in thedocumentwith a messageSecond promise was resolved - never rejected
- resolved only on
- The
thirdPromiseshould be resolved with a messageThird promise was resolvedonly after bothleftandrightclicks happened
Add success and error handlers to each promise to show <div data-qa="notification"> with success or error class and a promise message.
- Replace
<your_account>with your Github username in the link - Follow this instructions
- Run
npm run testcommand to test your code; - Run
npm run test:only -- -nto run fast test ignoring linter; - Run
npm run test:only -- -lto run fast test with additional info in console ignoring linter.
- Run