Skip to content

Commit

Permalink
Added changed per nits.
Browse files Browse the repository at this point in the history
  • Loading branch information
John Dorlus committed Jun 15, 2021
1 parent 58af144 commit c1ea029
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ describe('Processor: Circle', () => {
// Click submit button with only the type defined
await saveNewProcessor();

// Expect form error as "field" is required parameter
// Expect form error as "field" and "shape_type" are required parameters
expect(form.getErrorsMessages()).toEqual([
'A field value is required.',
'A shape type value is required.',
Expand All @@ -71,14 +71,16 @@ describe('Processor: Circle', () => {
form.setInputValue('fieldNameField.input', 'field_1');
// Save the field
form.setSelectValue('shapeSelectorField', 'shape');
// Set the error distance
form.setInputValue('errorDistanceField.input', '10');

await saveNewProcessor();

const processors = getProcessorValue(onUpdate, CIRCLE_TYPE);

expect(processors[0].circle).toEqual({
field: 'field_1',
error_distance: 1,
error_distance: 10,
shape_type: 'shape',
});
});
Expand Down

0 comments on commit c1ea029

Please sign in to comment.