Commit d9aa6160 authored by James Edwards-Jones's avatar James Edwards-Jones

Fix eslint expect newline error

parent 81d07bc5
...@@ -17,12 +17,14 @@ describe('DirtyFormChecker', () => { ...@@ -17,12 +17,14 @@ describe('DirtyFormChecker', () => {
it('finds editable inputs', () => { it('finds editable inputs', () => {
const editableInputs = dirtyFormChecker.editableInputs.map(input => input.name); const editableInputs = dirtyFormChecker.editableInputs.map(input => input.name);
expect(editableInputs).toContain('saml_provider[sso_url]'); expect(editableInputs).toContain('saml_provider[sso_url]');
expect(editableInputs).not.toContain('authenticity_token'); expect(editableInputs).not.toContain('authenticity_token');
}); });
it('tracks starting states for editable inputs', () => { it('tracks starting states for editable inputs', () => {
const enabledStartState = dirtyFormChecker.startingStates['saml_provider[enabled]']; const enabledStartState = dirtyFormChecker.startingStates['saml_provider[enabled]'];
expect(enabledStartState).toEqual('1'); expect(enabledStartState).toEqual('1');
}); });
}); });
......
...@@ -18,6 +18,7 @@ describe('SamlSettingsForm', () => { ...@@ -18,6 +18,7 @@ describe('SamlSettingsForm', () => {
it('disables Test button when form has changes', () => { it('disables Test button when form has changes', () => {
samlSettingsForm.dirtyFormChecker.isDirty = true; samlSettingsForm.dirtyFormChecker.isDirty = true;
expect(samlSettingsForm.testButton.hasAttribute('disabled')).toBe(false); expect(samlSettingsForm.testButton.hasAttribute('disabled')).toBe(false);
samlSettingsForm.updateView(); samlSettingsForm.updateView();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment