Lines Matching refs:contact
74 const createContact = async (contact) => { argument
75 const id = await Contacts.addContactAsync(contact);
76 createdContactIds.push({ id, contact });
117 contacts.map(async (contact) => {
118 const id = await createContact(contact);
159 const contact = await Contacts.getContactByIdAsync('-1');
160 expect(contact).toBeUndefined();
180 const contact = await Contacts.getContactByIdAsync(contactId, [
185 expect(contact.imageAvailable).toBe(true);
186 expect(contact.thumbnail).toBeUndefined();
189 expect(contact.image).toEqual(
195 expect(contact.image).toEqual(
207 const contact = { variable
219 const newContactId = await createContact(contact);
361 const contact = await Contacts.getContactByIdAsync(fakeContactId, [
366 const { phoneNumbers, emails } = contact;
368 expect(contact.note).toBeUndefined();
369 expect(contact.relationships).toBeUndefined();
370 expect(contact.addresses).toBeUndefined();
380 expect(contact).toEqual(
387 expect(contact.imageAvailable).toBeDefined();
395 createdContactIds.map(async ({ id, contact: expectedContact }) => {
396 const contact = await Contacts.getContactByIdAsync(id);
397 if (contact) {
398 expect(contact).toBeDefined();
399 expect(compareObjects(contact, expectedContact)).toBe(true);
437 const contact = await Contacts.getContactByIdAsync(contactId);
438 expect(contact).toBeUndefined();