@@ -19,7 +19,7 @@ export default class SleepTest {
1919
2020 const endDate = Date . now ( )
2121
22- const possibleValues = [ 10 , 11 , 12 , 13 , 14 , 15 ]
22+ const possibleValues = Array . from ( { length : 51 } , ( _ , i ) => 10 + i )
2323
2424 assert . isTrue ( possibleValues . includes ( endDate - startDate ) )
2525 }
@@ -32,7 +32,7 @@ export default class SleepTest {
3232
3333 const endDate = Date . now ( )
3434
35- const possibleValues = [ 1000 , 1001 , 1002 , 1003 , 1004 , 1005 ]
35+ const possibleValues = Array . from ( { length : 51 } , ( _ , i ) => 1000 + i )
3636
3737 assert . isTrue ( possibleValues . includes ( endDate - startDate ) )
3838 }
@@ -45,7 +45,7 @@ export default class SleepTest {
4545
4646 const endDate = Date . now ( )
4747
48- const possibleValues = [ 600 , 601 , 602 , 603 , 604 , 605 ]
48+ const possibleValues = Array . from ( { length : 51 } , ( _ , i ) => 600 + i )
4949
5050 assert . isTrue ( possibleValues . includes ( endDate - startDate ) )
5151 }
@@ -58,7 +58,7 @@ export default class SleepTest {
5858
5959 const endDate = Date . now ( )
6060
61- const possibleValues = [ 1100 , 1101 , 1102 , 1103 , 1104 , 1105 ]
61+ const possibleValues = Array . from ( { length : 51 } , ( _ , i ) => 1100 + i )
6262
6363 assert . isTrue ( possibleValues . includes ( endDate - startDate ) )
6464 }
0 commit comments