Commit c4567945 authored by Tim Zallmann's avatar Tim Zallmann

Merge branch 'jej/fix-saml-test-button-eslint' into 'master'

Fix eslint expect newline error

See merge request gitlab-org/gitlab-ee!7968
parents b2039d56 d9aa6160
......@@ -17,12 +17,14 @@ describe('DirtyFormChecker', () => {
it('finds editable inputs', () => {
const editableInputs = dirtyFormChecker.editableInputs.map(input => input.name);
expect(editableInputs).toContain('saml_provider[sso_url]');
expect(editableInputs).not.toContain('authenticity_token');
});
it('tracks starting states for editable inputs', () => {
const enabledStartState = dirtyFormChecker.startingStates['saml_provider[enabled]'];
expect(enabledStartState).toEqual('1');
});
});
......
......@@ -18,6 +18,7 @@ describe('SamlSettingsForm', () => {
it('disables Test button when form has changes', () => {
samlSettingsForm.dirtyFormChecker.isDirty = true;
expect(samlSettingsForm.testButton.hasAttribute('disabled')).toBe(false);
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