Remove mandatory parameters (#2743)

This commit is contained in:
martmull 2023-11-28 10:02:21 +01:00 committed by GitHub
parent 7b02391b22
commit 7752be8f9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 20 deletions

View File

@ -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,
},

View File

@ -42,7 +42,7 @@ export default {
key: 'email',
label: 'Email',
type: 'string',
required: true,
required: false,
list: false,
altersDynamicFields: false,
},

View File

@ -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,

View File

@ -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,