Add seeds and move to uuid (#80)

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Charles Bochet
2023-04-26 16:42:01 +02:00
committed by GitHub
parent 5aec7ca730
commit 6c7eb53333
38 changed files with 523 additions and 5935 deletions

View File

@ -3,7 +3,7 @@ import { mapGqlPerson, mapPerson } from './person.interface';
describe('mapPerson', () => {
it('should map person', () => {
const person = mapPerson({
id: 1,
id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6b',
firstname: 'John',
lastname: 'Doe',
email: '',
@ -12,9 +12,9 @@ describe('mapPerson', () => {
created_at: '',
company: {
__typename: '',
id: 1,
company_name: '',
company_domain: '',
id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6b',
name: '',
domain_name: '',
},
__typename: '',
});
@ -23,19 +23,19 @@ describe('mapPerson', () => {
it('should map person back', () => {
const person = mapGqlPerson({
id: 1,
id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6b',
fullName: 'John Doe',
email: '',
phone: '',
city: '',
company: {
id: 1,
id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6b',
name: '',
domain: '',
domain_name: '',
},
creationDate: new Date(),
pipe: {
id: 3,
id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6c',
name: '',
icon: '',
},