@@ -133,8 +133,8 @@ describe('AddNewTeamMemberTrigger', () => {
133133 const [ , { onSuccess } ] = mockMutate . mock . calls [ 0 ] ;
134134 onSuccess ( {
135135 completed : [
136- { user :
'[email protected] ' , status :
'role_added' } , 137- { user :
'[email protected] ' , status :
'added_to_team' } , 136+ { userIdentifier :
'[email protected] ' , status :
'role_added' } , 137+ { userIdentifier :
'[email protected] ' , status :
'added_to_team' } , 138138 ] ,
139139 errors : [ ] ,
140140 } ) ;
@@ -160,10 +160,10 @@ describe('AddNewTeamMemberTrigger', () => {
160160 const [ , { onSuccess } ] = mockMutate . mock . calls [ 0 ] ;
161161 onSuccess ( {
162162 completed : [
163- { user :
'[email protected] ' , status :
'role_added' } , 163+ { userIdentifier :
'[email protected] ' , status :
'role_added' } , 164164 ] ,
165165 errors : [
166- { user :
'[email protected] ' , error :
'user_not_found' } , 166+ { userIdentifier :
'[email protected] ' , error :
'user_not_found' } , 167167 ] ,
168168 } ) ;
169169
@@ -191,8 +191,8 @@ describe('AddNewTeamMemberTrigger', () => {
191191 onSuccess ( {
192192 completed : [ ] ,
193193 errors : [
194- { user :
'[email protected] ' , error :
'user_not_found' } , 195- { user :
'[email protected] ' , error :
'user_not_found' } , 194+ { userIdentifier :
'[email protected] ' , error :
'user_not_found' } , 195+ { userIdentifier :
'[email protected] ' , error :
'user_not_found' } , 196196 ] ,
197197 } ) ;
198198
@@ -222,7 +222,7 @@ describe('AddNewTeamMemberTrigger', () => {
222222 // Simulate successful response with no errors
223223 const [ , { onSuccess } ] = mockMutate . mock . calls [ 0 ] ;
224224 onSuccess ( {
225- completed :
[ { user :
'[email protected] ' , status :
'role_added' } ] , 225+ completed :
[ { userIdentifier :
'[email protected] ' , status :
'role_added' } ] , 226226 errors : [ ] ,
227227 } ) ;
228228
@@ -249,7 +249,7 @@ describe('AddNewTeamMemberTrigger', () => {
249249 // Simulate successful response
250250 const [ , { onSuccess } ] = mockMutate . mock . calls [ 0 ] ;
251251 onSuccess ( {
252- completed :
[ { user :
'[email protected] ' , status :
'role_added' } ] , 252+ completed :
[ { userIdentifier :
'[email protected] ' , status :
'role_added' } ] , 253253 errors : [ ] ,
254254 } ) ;
255255
0 commit comments