Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d9aa6160
Commit
d9aa6160
authored
Oct 17, 2018
by
James Edwards-Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix eslint expect newline error
parent
81d07bc5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
ee/spec/javascripts/saml_providers/dirty_form_checker_spec.js
...pec/javascripts/saml_providers/dirty_form_checker_spec.js
+2
-0
ee/spec/javascripts/saml_providers/saml_settings_form_spec.js
...pec/javascripts/saml_providers/saml_settings_form_spec.js
+1
-0
No files found.
ee/spec/javascripts/saml_providers/dirty_form_checker_spec.js
View file @
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
'
);
});
});
...
...
ee/spec/javascripts/saml_providers/saml_settings_form_spec.js
View file @
d9aa6160
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment