Create 3 promises:
- The
firstPromise
should be- resolved with a message
First promise was resolved
on a leftclick
in thedocument
- rejected with a message
First promise was rejected
in 3 seconds if not clicked
- resolved with a message
- The
secondPromise
should be:- resolved only on
left
orright
click in thedocument
with a messageSecond promise was resolved
- never rejected
- resolved only on
- The
thirdPromise
should be resolved with a messageThird promise was resolved
only after bothleft
andright
clicks 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 test
command to test your code; - Run
npm run test:only -- -n
to run fast test ignoring linter; - Run
npm run test:only -- -l
to run fast test with additional info in console ignoring linter.
- Run