• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Test Promise.race
2
3On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5PASS result is undefined
6PASS Promise.race() is rejected.
7PASS Promise.race({}) is rejected.
8PASS Promise.race([p4, p1, p6]) is fulfilled.
9PASS result is "p1"
10PASS Promise.race([p4, p6, p1]) is rejected.
11PASS result is "p6"
12PASS Promise.race([p9]) is fulfilled.
13PASS result is "p2"
14PASS Promise.race([p4,,]) is fulfilled.
15PASS result is undefined
16PASS Promise.race([p4,42]) is fulfilled.
17PASS result is 42
18PASS successfullyParsed is true
19
20TEST COMPLETE
21
22