@@ -344,7 +344,7 @@ describe('flows', () => {
344344 const jobIdFromDebounceKey = await queue . getDebounceJobId (
345345 'debounce_id' ,
346346 )
347- expect ( jobIdFromDebounceKey ) . to . be . null
347+ expect ( jobIdFromDebounceKey ) . toBeNull ( )
348348
349349 expect ( debouncedCounter ) . toBe ( 1 )
350350
@@ -588,8 +588,8 @@ describe('flows', () => {
588588 = await children ! [ 0 ] . job . removeChildDependency ( )
589589
590590 expect ( relationshipIsBroken ) . to . be . true
591- expect ( children ! [ 0 ] . job . parent ) . to . be . undefined
592- expect ( children ! [ 0 ] . job . parentKey ) . to . be . undefined
591+ expect ( children ! [ 0 ] . job . parent ) . toBeUndefined ( )
592+ expect ( children ! [ 0 ] . job . parentKey ) . toBeUndefined ( )
593593
594594 const parentState = await job . getState ( )
595595
@@ -657,8 +657,8 @@ describe('flows', () => {
657657 = await children ! [ 0 ] . job . removeChildDependency ( )
658658
659659 expect ( relationshipIsBroken ) . to . be . true
660- expect ( children ! [ 0 ] . job . parent ) . to . be . undefined
661- expect ( children ! [ 0 ] . job . parentKey ) . to . be . undefined
660+ expect ( children ! [ 0 ] . job . parent ) . toBeUndefined ( )
661+ expect ( children ! [ 0 ] . job . parentKey ) . toBeUndefined ( )
662662
663663 const parentState = await job . getState ( )
664664
@@ -1571,7 +1571,7 @@ describe('flows', () => {
15711571 parentWorker . on ( 'completed' , async ( job : Job ) => {
15721572 expect ( job . finishedOn ) . to . be . string
15731573 const gotJob = await parentQueue . getJob ( job . id )
1574- expect ( gotJob ) . to . be . undefined
1574+ expect ( gotJob ) . toBeUndefined ( )
15751575 const counts = await parentQueue . getJobCounts ( 'completed' )
15761576 expect ( counts . completed ) . toBe ( 0 )
15771577 resolve ( )
@@ -1719,7 +1719,7 @@ describe('flows', () => {
17191719 parentWorker . on ( 'completed' , async ( job : Job ) => {
17201720 expect ( job . finishedOn ) . to . be . string
17211721 const gotJob = await parentQueue . getJob ( job . id )
1722- expect ( gotJob ) . to . be . undefined
1722+ expect ( gotJob ) . toBeUndefined ( )
17231723 const counts = await parentQueue . getJobCounts ( 'completed' )
17241724 expect ( counts . completed ) . toBe ( 0 )
17251725 resolve ( )
@@ -3024,7 +3024,7 @@ describe('flows', () => {
30243024 expect ( updatedGrandchildJob . failedReason ) . toBe ( 'failed' )
30253025
30263026 const updatedParentJob = await queue . getJob ( children [ 1 ] . job . id )
3027- expect ( updatedParentJob ) . to . be . undefined
3027+ expect ( updatedParentJob ) . toBeUndefined ( )
30283028
30293029 const updatedGrandparentJob = await parentQueue . getJob ( job . id )
30303030 const updatedGrandparentState = await updatedGrandparentJob . getState ( )
@@ -4008,10 +4008,10 @@ describe('flows', () => {
40084008 expect ( children . length ) . to . be . greaterThanOrEqual ( 2 )
40094009
40104010 expect ( children [ 0 ] . job . id ) . to . be . ok
4011- expect ( children [ 0 ] . children ) . to . be . undefined
4011+ expect ( children [ 0 ] . children ) . toBeUndefined ( )
40124012
40134013 expect ( children [ 1 ] . job . id ) . to . be . ok
4014- expect ( children [ 1 ] . children ) . to . be . undefined
4014+ expect ( children [ 1 ] . children ) . toBeUndefined ( )
40154015
40164016 await flow . close ( )
40174017
@@ -5135,7 +5135,7 @@ describe('flows', () => {
51355135 const childJob = await Job . fromId ( queue , child . job . id ! )
51365136
51375137 if ( ! processed . includes ( child . job . id ! ) ) {
5138- expect ( childJob ) . to . be . undefined
5138+ expect ( childJob ) . toBeUndefined ( )
51395139 }
51405140 else {
51415141 expect ( childJob ) . to . be . ok
@@ -5276,12 +5276,12 @@ describe('flows', () => {
52765276
52775277 const parentQueue = new Queue ( parentQueueName , { connection, prefix } )
52785278 const parentJob = await Job . fromId ( parentQueue , tree . job . id )
5279- expect ( parentJob ) . to . be . undefined
5279+ expect ( parentJob ) . toBeUndefined ( )
52805280
52815281 for ( let i = 0 ; i < tree . children . length ; i ++ ) {
52825282 const child = tree . children [ i ]
52835283 const childJob = await Job . fromId ( queue , child . job . id )
5284- expect ( childJob ) . to . be . undefined
5284+ expect ( childJob ) . toBeUndefined ( )
52855285 }
52865286
52875287 expect ( await tree . children [ 0 ] . job . getState ( ) ) . toBe ( 'unknown' )
@@ -5341,7 +5341,7 @@ describe('flows', () => {
53415341
53425342 const parentQueue = new Queue ( parentQueueName , { connection, prefix } )
53435343 const parentJob = await Job . fromId ( parentQueue , tree . job . id )
5344- expect ( parentJob ) . to . be . undefined
5344+ expect ( parentJob ) . toBeUndefined ( )
53455345
53465346 for ( let i = 0 ; i < tree . children . length ; i ++ ) {
53475347 const child = tree . children [ i ]
@@ -5431,12 +5431,12 @@ describe('flows', () => {
54315431
54325432 const parentQueue = new Queue ( parentQueueName , { connection, prefix } )
54335433 const parentJob = await Job . fromId ( parentQueue , tree . job . id )
5434- expect ( parentJob ) . to . be . undefined
5434+ expect ( parentJob ) . toBeUndefined ( )
54355435
54365436 for ( let i = 0 ; i < tree . children . length ; i ++ ) {
54375437 const child = tree . children [ i ]
54385438 const childJob = await Job . fromId ( queue , child . job . id )
5439- expect ( childJob ) . to . be . undefined
5439+ expect ( childJob ) . toBeUndefined ( )
54405440 }
54415441
54425442 const jobs = await queue . getJobCountByTypes ( 'completed' )
@@ -5538,12 +5538,12 @@ describe('flows', () => {
55385538 prefix,
55395539 } )
55405540 const parentJob = await Job . fromId ( parentQueue , tree . job . id )
5541- expect ( parentJob ) . to . be . undefined
5541+ expect ( parentJob ) . toBeUndefined ( )
55425542
55435543 for ( let i = 0 ; i < tree . children ! [ 0 ] . children ! . length ; i ++ ) {
55445544 const child = tree . children ! [ 0 ] . children ! [ i ]
55455545 const childJob = await Job . fromId ( queue , child . job . id )
5546- expect ( childJob ) . to . be . undefined
5546+ expect ( childJob ) . toBeUndefined ( )
55475547 }
55485548
55495549 const jobs = await queue . getJobCountByTypes ( 'completed' )
@@ -5658,12 +5658,12 @@ describe('flows', () => {
56585658
56595659 const parentQueue = new Queue ( parentQueueName , { connection, prefix } )
56605660 const parentJob = await Job . fromId ( parentQueue , tree . job . id )
5661- expect ( parentJob ) . to . be . undefined
5661+ expect ( parentJob ) . toBeUndefined ( )
56625662
56635663 for ( let i = 0 ; i < tree . children . length ; i ++ ) {
56645664 const child = tree . children [ i ]
56655665 const childJob = await Job . fromId ( queue , child . job . id )
5666- expect ( childJob ) . to . be . undefined
5666+ expect ( childJob ) . toBeUndefined ( )
56675667 }
56685668
56695669 const jobs = await queue . getJobCountByTypes ( 'failed' )
0 commit comments