Remove mandatory parameters (#2743)
This commit is contained in:
@ -26,7 +26,7 @@ export default {
|
|||||||
key: 'name',
|
key: 'name',
|
||||||
label: 'Company Name',
|
label: 'Company Name',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
required: true,
|
required: false,
|
||||||
list: false,
|
list: false,
|
||||||
altersDynamicFields: false,
|
altersDynamicFields: false,
|
||||||
},
|
},
|
||||||
@ -34,7 +34,7 @@ export default {
|
|||||||
key: 'address',
|
key: 'address',
|
||||||
label: 'Address',
|
label: 'Address',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
required: true,
|
required: false,
|
||||||
list: false,
|
list: false,
|
||||||
altersDynamicFields: false,
|
altersDynamicFields: false,
|
||||||
},
|
},
|
||||||
@ -42,7 +42,7 @@ export default {
|
|||||||
key: 'domainName',
|
key: 'domainName',
|
||||||
label: 'Url',
|
label: 'Url',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
required: true,
|
required: false,
|
||||||
list: false,
|
list: false,
|
||||||
altersDynamicFields: false,
|
altersDynamicFields: false,
|
||||||
},
|
},
|
||||||
|
|||||||
@ -42,7 +42,7 @@ export default {
|
|||||||
key: 'email',
|
key: 'email',
|
||||||
label: 'Email',
|
label: 'Email',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
required: true,
|
required: false,
|
||||||
list: false,
|
list: false,
|
||||||
altersDynamicFields: false,
|
altersDynamicFields: false,
|
||||||
},
|
},
|
||||||
|
|||||||
@ -36,16 +36,8 @@ describe('creates.create_company', () => {
|
|||||||
100000000000,
|
100000000000,
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
test('should run with not required missing params', async () => {
|
test('should run with not required params', async () => {
|
||||||
const bundle = getBundle({
|
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,
|
|
||||||
});
|
|
||||||
const result = await appTester(
|
const result = await appTester(
|
||||||
App.creates.create_company.operation.perform,
|
App.creates.create_company.operation.perform,
|
||||||
bundle,
|
bundle,
|
||||||
|
|||||||
@ -31,12 +31,8 @@ describe('creates.create_person', () => {
|
|||||||
expect(checkDbResult.data.person.phone).toEqual('+33610203040');
|
expect(checkDbResult.data.person.phone).toEqual('+33610203040');
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should run with not required missing params', async () => {
|
test('should run with not required params', async () => {
|
||||||
const bundle = getBundle({
|
const bundle = getBundle({});
|
||||||
name: {firstName: 'John', lastName: 'Doe'},
|
|
||||||
email: 'johndoe@gmail.com',
|
|
||||||
city: 'Paris',
|
|
||||||
});
|
|
||||||
const results = await appTester(
|
const results = await appTester(
|
||||||
App.creates.create_person.operation.perform,
|
App.creates.create_person.operation.perform,
|
||||||
bundle,
|
bundle,
|
||||||
|
|||||||
Reference in New Issue
Block a user