@@ -27,8 +27,9 @@ test('setCQId - should set to random value if deterministicCQId is false', (t):
2727
2828 setCQId ( resource , false , ( ) => NIL_UUID ) ;
2929
30- t . is ( resource . getColumnData ( cqIDColumn . name ) . valid , true ) ;
31- t . is ( resource . getColumnData ( cqIDColumn . name ) . value . toString ( ) , NIL_UUID ) ;
30+ const cqId = resource . getColumnData ( cqIDColumn . name ) ;
31+ t . is ( cqId . valid , true ) ;
32+ t . is ( cqId . toString ( ) , NIL_UUID ) ;
3233} ) ;
3334
3435test ( 'setCQId - should set to random value if deterministicCQId is true and table does not have non _cq_id PKs' , ( t ) : void => {
@@ -50,8 +51,9 @@ test('setCQId - should set to random value if deterministicCQId is true and tabl
5051
5152 setCQId ( resource , true , ( ) => NIL_UUID ) ;
5253
53- t . is ( resource . getColumnData ( cqIDColumn . name ) . valid , true ) ;
54- t . is ( resource . getColumnData ( cqIDColumn . name ) . value . toString ( ) , NIL_UUID ) ;
54+ const cqId = resource . getColumnData ( cqIDColumn . name ) ;
55+ t . is ( cqId . valid , true ) ;
56+ t . is ( cqId . toString ( ) , NIL_UUID ) ;
5557} ) ;
5658
5759test ( 'setCQId - should set to fixed value if deterministicCQId is true and table has non _cq_id PKs' , ( t ) : void => {
@@ -78,6 +80,7 @@ test('setCQId - should set to fixed value if deterministicCQId is true and table
7880
7981 setCQId ( resource , true ) ;
8082
81- t . is ( resource . getColumnData ( cqIDColumn . name ) . valid , true ) ;
82- t . is ( resource . getColumnData ( cqIDColumn . name ) . value . toString ( ) , '415bd5dd-9bac-5806-b9d1-c53f17d37455' ) ;
83+ const cqId = resource . getColumnData ( cqIDColumn . name ) ;
84+ t . is ( cqId . valid , true ) ;
85+ t . is ( cqId . toString ( ) , '415bd5dd-9bac-5806-b9d1-c53f17d37455' ) ;
8386} ) ;
0 commit comments