mirror of
https://github.com/twentyhq/twenty.git
synced 2024-11-22 11:43:34 +03:00
Remove mandatory parameters (#2743)
This commit is contained in:
parent
7b02391b22
commit
7752be8f9a
@ -26,7 +26,7 @@ export default {
|
||||
key: 'name',
|
||||
label: 'Company Name',
|
||||
type: 'string',
|
||||
required: true,
|
||||
required: false,
|
||||
list: false,
|
||||
altersDynamicFields: false,
|
||||
},
|
||||
@ -34,7 +34,7 @@ export default {
|
||||
key: 'address',
|
||||
label: 'Address',
|
||||
type: 'string',
|
||||
required: true,
|
||||
required: false,
|
||||
list: false,
|
||||
altersDynamicFields: false,
|
||||
},
|
||||
@ -42,7 +42,7 @@ export default {
|
||||
key: 'domainName',
|
||||
label: 'Url',
|
||||
type: 'string',
|
||||
required: true,
|
||||
required: false,
|
||||
list: false,
|
||||
altersDynamicFields: false,
|
||||
},
|
||||
|
@ -42,7 +42,7 @@ export default {
|
||||
key: 'email',
|
||||
label: 'Email',
|
||||
type: 'string',
|
||||
required: true,
|
||||
required: false,
|
||||
list: false,
|
||||
altersDynamicFields: false,
|
||||
},
|
||||
|
@ -36,16 +36,8 @@ describe('creates.create_company', () => {
|
||||
100000000000,
|
||||
);
|
||||
});
|
||||
test('should run with not required missing params', async () => {
|
||||
const bundle = getBundle({
|
||||
name: 'Company Name',
|
||||
address: 'Company Address',
|
||||
domainName: 'Company Domain Name',
|
||||
linkedinLink: {url: '/linkedin_url', label: "Test linkedinUrl"},
|
||||
xLink: {url: '/x_url', label: "Test xUrl"},
|
||||
idealCustomerProfile: true,
|
||||
employees: 25,
|
||||
});
|
||||
test('should run with not required params', async () => {
|
||||
const bundle = getBundle({});
|
||||
const result = await appTester(
|
||||
App.creates.create_company.operation.perform,
|
||||
bundle,
|
||||
|
@ -31,12 +31,8 @@ describe('creates.create_person', () => {
|
||||
expect(checkDbResult.data.person.phone).toEqual('+33610203040');
|
||||
});
|
||||
|
||||
test('should run with not required missing params', async () => {
|
||||
const bundle = getBundle({
|
||||
name: {firstName: 'John', lastName: 'Doe'},
|
||||
email: 'johndoe@gmail.com',
|
||||
city: 'Paris',
|
||||
});
|
||||
test('should run with not required params', async () => {
|
||||
const bundle = getBundle({});
|
||||
const results = await appTester(
|
||||
App.creates.create_person.operation.perform,
|
||||
bundle,
|
||||
|
Loading…
Reference in New Issue
Block a user