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
3c3701c9
Commit
3c3701c9
authored
Dec 14, 2018
by
Natalia Tepluhina
Committed by
André Luís
Dec 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a test for special characters
parent
db30ddbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
spec/javascripts/vue_shared/components/user_popover/user_popover_spec.js
...s/vue_shared/components/user_popover/user_popover_spec.js
+13
-0
No files found.
spec/javascripts/vue_shared/components/user_popover/user_popover_spec.js
View file @
3c3701c9
...
...
@@ -101,6 +101,19 @@ describe('User Popover Component', () => {
expect
(
vm
.
$el
.
textContent
).
toContain
(
'
Engineer at GitLab
'
);
});
it
(
'
should not encode special characters when we have bio and organization
'
,
()
=>
{
const
testProps
=
Object
.
assign
({},
DEFAULT_PROPS
);
testProps
.
user
.
bio
=
'
Manager & Team Lead
'
;
testProps
.
user
.
organization
=
'
GitLab
'
;
vm
=
mountComponent
(
UserPopover
,
{
...
DEFAULT_PROPS
,
target
:
document
.
querySelector
(
'
.js-user-link
'
),
});
expect
(
vm
.
$el
.
textContent
).
toContain
(
'
Manager & Team Lead at GitLab
'
);
});
});
describe
(
'
status data
'
,
()
=>
{
...
...
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