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
0c73c369
Commit
0c73c369
authored
Nov 14, 2019
by
leiminghuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
append frontend tests
parent
e56636d1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
spec/javascripts/sidebar/subscriptions_spec.js
spec/javascripts/sidebar/subscriptions_spec.js
+15
-0
No files found.
spec/javascripts/sidebar/subscriptions_spec.js
View file @
0c73c369
...
...
@@ -76,4 +76,19 @@ describe('Subscriptions', function() {
expect
(
vm
.
$emit
).
toHaveBeenCalledWith
(
'
toggleSidebar
'
);
});
it
(
'
notify component disabled when project_emails_disabled is set on
'
,
()
=>
{
vm
=
mountComponent
(
Subscriptions
,
{
subscribed
:
true
,
projectEmailsDisabled
:
true
,
subscribeDisabledDescription
:
'
Notifications have been disabled
'
,
});
expect
(
vm
.
$el
.
querySelector
(
'
span
'
).
getAttribute
(
'
data-original-title
'
)).
toBe
(
vm
.
subscribeDisabledDescription
,
);
expect
(
vm
.
$el
.
querySelector
(
'
.issuable-header-text
'
).
textContent
.
trim
()).
toBe
(
vm
.
subscribeDisabledDescription
,
);
});
});
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