Frontend tests improvements (#13115)

Fix warnings and lower coverage by 0.1%
This commit is contained in:
Félix Malfait
2025-07-09 09:23:26 +02:00
committed by GitHub
parent 6057bdd389
commit 6ba6860e1c
29 changed files with 435 additions and 237 deletions

View File

@ -29,11 +29,27 @@ export const peopleQueryResult = {
primaryPhoneNumber: '781234562',
primaryPhoneCountryCode: 'FR',
primaryPhoneCallingCode: '+33',
additionalPhones: [],
},
id: 'da3c2c4b-da01-4b81-9734-226069eb4cd0',
jobTitle: '',
position: 0,
email: 'asd.com',
avatarUrl: null,
emails: {
primaryEmail: 'asd.com',
additionalEmails: [],
},
intro: '',
performanceRating: null,
updatedAt: '2025-01-02T09:52:46.814Z',
whatsapp: {
primaryPhoneNumber: '',
primaryPhoneCountryCode: '',
primaryPhoneCallingCode: '',
additionalPhones: [],
},
workPreference: null,
name: {
__typename: 'FullName',
firstName: 'Test',
@ -58,6 +74,7 @@ export const peopleQueryResult = {
source: 'MANUAL',
workspaceMemberId: '20202020-0687-4c41-b707-ed1bfca972a7',
name: 'Tim Apple',
context: null,
},
xLink: {
__typename: 'Links',
@ -161,11 +178,27 @@ export const peopleQueryResult = {
primaryPhoneNumber: '781234562',
primaryPhoneCountryCode: 'FR',
primaryPhoneCallingCode: '+33',
additionalPhones: [],
},
id: '20202020-1c0e-494c-a1b6-85b1c6fefaa5',
jobTitle: '',
position: 1,
email: 'christoph.calisto@linkedin.com',
avatarUrl: null,
emails: {
primaryEmail: 'christoph.calisto@linkedin.com',
additionalEmails: [],
},
intro: '',
performanceRating: null,
updatedAt: '2025-01-01T09:50:00.000Z',
whatsapp: {
primaryPhoneNumber: '',
primaryPhoneCountryCode: '',
primaryPhoneCallingCode: '',
additionalPhones: [],
},
workPreference: null,
name: {
__typename: 'FullName',
firstName: 'Christoph',
@ -190,6 +223,7 @@ export const peopleQueryResult = {
source: 'MANUAL',
workspaceMemberId: '20202020-0687-4c41-b707-ed1bfca972a7',
name: 'Tim Apple',
context: null,
},
xLink: {
__typename: 'Links',
@ -293,6 +327,7 @@ export const peopleQueryResult = {
primaryPhoneNumber: '781234576',
primaryPhoneCountryCode: 'FR',
primaryPhoneCallingCode: '+33',
additionalPhones: [],
},
id: '20202020-ac73-4797-824e-87a1f5aea9e0',
jobTitle: '',
@ -394,6 +429,7 @@ export const peopleQueryResult = {
primaryPhoneNumber: '781234545',
primaryPhoneCountryCode: 'FR',
primaryPhoneCallingCode: '+33',
additionalPhones: [],
},
id: '20202020-f517-42fd-80ae-14173b3b70ae',
jobTitle: '',
@ -495,6 +531,7 @@ export const peopleQueryResult = {
primaryPhoneNumber: '781234587',
primaryPhoneCountryCode: 'FR',
primaryPhoneCallingCode: '+33',
additionalPhones: [],
},
id: '20202020-eee1-4690-ad2c-8619e5b56a2e',
jobTitle: '',
@ -596,6 +633,7 @@ export const peopleQueryResult = {
primaryPhoneNumber: '781234599',
primaryPhoneCountryCode: 'FR',
primaryPhoneCallingCode: '+33',
additionalPhones: [],
},
id: '20202020-6784-4449-afdf-dc62cb8702f2',
jobTitle: '',
@ -697,6 +735,7 @@ export const peopleQueryResult = {
primaryPhoneNumber: '781234572',
primaryPhoneCountryCode: 'FR',
primaryPhoneCallingCode: '+33',
additionalPhones: [],
},
id: '20202020-490f-4466-8391-733cfd66a0c8',
jobTitle: '',
@ -798,6 +837,7 @@ export const peopleQueryResult = {
primaryPhoneNumber: '781234582',
primaryPhoneCountryCode: 'FR',
primaryPhoneCallingCode: '+33',
additionalPhones: [],
},
id: '20202020-80f1-4dff-b570-a74942528de3',
jobTitle: '',
@ -899,6 +939,7 @@ export const peopleQueryResult = {
primaryPhoneNumber: '781234569',
primaryPhoneCountryCode: 'FR',
primaryPhoneCallingCode: '+33',
additionalPhones: [],
},
id: '20202020-338b-46df-8811-fa08c7d19d35',
jobTitle: '',
@ -1000,6 +1041,7 @@ export const peopleQueryResult = {
primaryPhoneNumber: '781234962',
primaryPhoneCountryCode: 'FR',
primaryPhoneCallingCode: '+33',
additionalPhones: [],
},
id: '20202020-64ad-4b0e-bbfd-e9fd795b7016',
jobTitle: '',
@ -1101,6 +1143,7 @@ export const peopleQueryResult = {
primaryPhoneNumber: '781234502',
primaryPhoneCountryCode: 'FR',
primaryPhoneCallingCode: '+33',
additionalPhones: [],
},
id: '20202020-5d54-41b7-ba36-f0d20e1417ae',
jobTitle: '',
@ -1202,6 +1245,7 @@ export const peopleQueryResult = {
primaryPhoneNumber: '781234563',
primaryPhoneCountryCode: 'FR',
primaryPhoneCallingCode: '+33',
additionalPhones: [],
},
id: '20202020-623d-41fe-92e7-dd45b7c568e1',
jobTitle: '',
@ -1303,6 +1347,7 @@ export const peopleQueryResult = {
primaryPhoneNumber: '781234542',
primaryPhoneCountryCode: 'FR',
primaryPhoneCallingCode: '+33',
additionalPhones: [],
},
id: '20202020-2d40-4e49-8df4-9c6a049190ef',
jobTitle: '',
@ -1404,6 +1449,7 @@ export const peopleQueryResult = {
primaryPhoneNumber: '782234562',
primaryPhoneCountryCode: 'FR',
primaryPhoneCallingCode: '+33',
additionalPhones: [],
},
id: '20202020-2d40-4e49-8df4-9c6a049190df',
jobTitle: '',
@ -1505,6 +1551,7 @@ export const peopleQueryResult = {
primaryPhoneNumber: '781274562',
primaryPhoneCountryCode: 'FR',
primaryPhoneCallingCode: '+33',
additionalPhones: [],
},
id: '20202020-2d40-4e49-8df4-9c6a049191de',
jobTitle: '',
@ -1606,6 +1653,7 @@ export const peopleQueryResult = {
primaryPhoneNumber: '781239562',
primaryPhoneCountryCode: 'FR',
primaryPhoneCallingCode: '+33',
additionalPhones: [],
},
id: '20202020-2d40-4e49-8df4-9c6a049191df',
jobTitle: '',