@@ -39,8 +39,8 @@ describe('strategy.serialize()', () => {
3939 name : 'add' ,
4040 } ) ;
4141
42- const job1 = await scheduler . schedule ( 'add' , [ 1 , 2 , 3 , 4 ] ) ;
43- const job2 = await scheduler . schedule ( 'add' , [ 1 , 2 , 3 , 4 , 5 ] ) ;
42+ const job1 = scheduler . schedule ( 'add' , [ 1 , 2 , 3 , 4 ] ) ;
43+ const job2 = scheduler . schedule ( 'add' , [ 1 , 2 , 3 , 4 , 5 ] ) ;
4444 expect ( started ) . toBe ( 0 ) ;
4545 expect ( finished ) . toBe ( 0 ) ;
4646
@@ -102,8 +102,8 @@ describe('strategy.serialize()', () => {
102102 name : 'add100' ,
103103 } ) ;
104104
105- const job1 = await scheduler . schedule ( 'add' , [ 1 , 2 , 3 , 4 ] ) ;
106- const job2 = await scheduler . schedule ( 'add100' , [ 1 , 2 , 3 , 4 , 5 ] ) ;
105+ const job1 = scheduler . schedule ( 'add' , [ 1 , 2 , 3 , 4 ] ) ;
106+ const job2 = scheduler . schedule ( 'add100' , [ 1 , 2 , 3 , 4 , 5 ] ) ;
107107 expect ( started ) . toBe ( 0 ) ;
108108 expect ( finished ) . toBe ( 0 ) ;
109109
@@ -159,8 +159,8 @@ describe('strategy.reuse()', () => {
159159 name : 'add' ,
160160 } ) ;
161161
162- const job1 = await scheduler . schedule ( 'add' , [ 1 , 2 , 3 , 4 ] ) ;
163- const job2 = await scheduler . schedule ( 'add' , [ ] ) ;
162+ const job1 = scheduler . schedule ( 'add' , [ 1 , 2 , 3 , 4 ] ) ;
163+ const job2 = scheduler . schedule ( 'add' , [ ] ) ;
164164 expect ( started ) . toBe ( 0 ) ;
165165 expect ( finished ) . toBe ( 0 ) ;
166166
@@ -179,8 +179,8 @@ describe('strategy.reuse()', () => {
179179 expect ( job1 . state ) . toBe ( JobState . Ended ) ;
180180 expect ( job2 . state ) . toBe ( JobState . Ended ) ;
181181
182- const job3 = await scheduler . schedule ( 'add' , [ 1 , 2 , 3 , 4 , 5 ] ) ;
183- const job4 = await scheduler . schedule ( 'add' , [ ] ) ;
182+ const job3 = scheduler . schedule ( 'add' , [ 1 , 2 , 3 , 4 , 5 ] ) ;
183+ const job4 = scheduler . schedule ( 'add' , [ ] ) ;
184184 job3 . output . subscribe ( ) ;
185185 expect ( started ) . toBe ( 2 ) ;
186186 expect ( finished ) . toBe ( 1 ) ;
@@ -226,10 +226,10 @@ describe('strategy.memoize()', () => {
226226 name : 'add' ,
227227 } ) ;
228228
229- const job1 = await scheduler . schedule ( 'add' , [ 1 , 2 , 3 , 4 ] ) ;
230- const job2 = await scheduler . schedule ( 'add' , [ 1 , 2 , 3 , 4 ] ) ;
231- const job3 = await scheduler . schedule ( 'add' , [ 1 , 2 , 3 , 4 , 5 ] ) ;
232- const job4 = await scheduler . schedule ( 'add' , [ 1 , 2 , 3 , 4 , 5 ] ) ;
229+ const job1 = scheduler . schedule ( 'add' , [ 1 , 2 , 3 , 4 ] ) ;
230+ const job2 = scheduler . schedule ( 'add' , [ 1 , 2 , 3 , 4 ] ) ;
231+ const job3 = scheduler . schedule ( 'add' , [ 1 , 2 , 3 , 4 , 5 ] ) ;
232+ const job4 = scheduler . schedule ( 'add' , [ 1 , 2 , 3 , 4 , 5 ] ) ;
233233 expect ( started ) . toBe ( 0 ) ;
234234 expect ( finished ) . toBe ( 0 ) ;
235235
0 commit comments