test: wait for rows to be displayed
This commit is contained in:
22
front/src/interfaces/person.interface.test.ts
Normal file
22
front/src/interfaces/person.interface.test.ts
Normal 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');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user