Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sebelga committed Dec 3, 2020
1 parent 4fa275a commit 89b6dbf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Expand Up @@ -93,10 +93,7 @@ describe('Runtime field editor flyout', () => {

expect(onSave).toHaveBeenCalledTimes(0);
expect(find('saveFieldButton').props().disabled).toBe(true);
expect(form.getErrorsMessages()).toEqual([
'Give a name to the field.',
'Script must emit() a value.',
]);
expect(form.getErrorsMessages()).toEqual(['Give a name to the field.']);
expect(exists('formError')).toBe(true);
expect(find('formError').text()).toBe('Fix errors in form before continuing.');
});
Expand Down
Expand Up @@ -18,7 +18,7 @@ const setup = (props?: Props) =>
})(props) as TestBed;

const links = {
painlessSyntax: 'https://jestTest.elastic.co/to-be-defined.html',
runtimePainless: 'https://jestTest.elastic.co/to-be-defined.html',
};

describe('Runtime field form', () => {
Expand All @@ -45,7 +45,7 @@ describe('Runtime field form', () => {
const { exists, find } = testBed;

expect(exists('painlessSyntaxLearnMoreLink')).toBe(true);
expect(find('painlessSyntaxLearnMoreLink').props().href).toBe(links.painlessSyntax);
expect(find('painlessSyntaxLearnMoreLink').props().href).toBe(links.runtimePainless);
});

test('should accept a "defaultValue" prop', () => {
Expand Down

0 comments on commit 89b6dbf

Please sign in to comment.