@@ -133,8 +133,8 @@ describe('AddNewTeamMemberTrigger', () => {
133133 const [ , { onSuccess } ] = mockMutate . mock . calls [ 0 ] ;
134134 onSuccess ( {
135135 completed : [
136- { user : 'alice@example.com' , status : 'role_added' } ,
137- { user : 'bob@example.com' , status : 'added_to_team' } ,
136+ { userIdentifier : 'alice@example.com' , status : 'role_added' } ,
137+ { userIdentifier : 'bob@example.com' , 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 : 'alice@example.com' , status : 'role_added' } ,
163+ { userIdentifier : 'alice@example.com' , status : 'role_added' } ,
164164 ] ,
165165 errors : [
166- { user : 'unknown@example.com' , error : 'user_not_found' } ,
166+ { userIdentifier : 'unknown@example.com' , error : 'user_not_found' } ,
167167 ] ,
168168 } ) ;
169169
@@ -191,8 +191,8 @@ describe('AddNewTeamMemberTrigger', () => {
191191 onSuccess ( {
192192 completed : [ ] ,
193193 errors : [
194- { user : 'unknown1@example.com' , error : 'user_not_found' } ,
195- { user : 'unknown2@example.com' , error : 'user_not_found' } ,
194+ { userIdentifier : 'unknown1@example.com' , error : 'user_not_found' } ,
195+ { userIdentifier : 'unknown2@example.com' , 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 : 'alice@example.com' , status : 'role_added' } ] ,
225+ completed : [ { userIdentifier : 'alice@example.com' , 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 : 'alice@example.com' , status : 'role_added' } ] ,
252+ completed : [ { userIdentifier : 'alice@example.com' , status : 'role_added' } ] ,
253253 errors : [ ] ,
254254 } ) ;
255255
0 commit comments