Skip to content

Commit

Permalink
Added await to fix promise rejection.
Browse files Browse the repository at this point in the history
  • Loading branch information
John Dorlus committed May 5, 2021
1 parent 5f946bb commit f6bc45f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ type TestSubject =
| 'pipelineEditorOnFailureToggle'
| 'addProcessorsButtonLevel1'
| 'editProcessorForm'
| 'mockCodeEditor'
| 'editProcessorForm.submitButton'
| 'addProcessorForm.submitButton'
| 'addProcessorForm'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ describe('Processor: Bytes', () => {

// Trying to get the monaco text editor to work with CITs.
const jsonContent = JSON.stringify({ content: "ctx?.network?.name == 'Guest'" });
find('mockCodeEditor').simulate('change', { jsonContent });
await find('mockCodeEditor').simulate('change', { jsonContent });

// Save the field
await saveNewProcessor();
Expand Down

0 comments on commit f6bc45f

Please sign in to comment.