test: wait for rows to be displayed

This commit is contained in:
Sammy Teillet
2023-04-20 18:44:43 +02:00
parent b5affcce3f
commit 3a7b1077f8
4 changed files with 76 additions and 30 deletions

View File

@ -0,0 +1,22 @@
import { mapPerson } from './person.interface';
describe('mapPerson', () => {
it('should map person', () => {
const person = mapPerson({
id: 1,
firstname: 'John',
lastname: 'Doe',
email: '',
phone: '',
city: '',
created_at: '',
company: {
__typename: '',
company_name: '',
company_domain: '',
},
__typename: '',
});
expect(person.fullName).toBe('John Doe');
});
});