summaryrefslogtreecommitdiff
path: root/spec/javascripts/vue_shared/components/user_popover
diff options
context:
space:
mode:
authorDennis Tang <dtang@gitlab.com>2019-01-22 22:10:48 +0000
committerYorick Peterse <yorickpeterse@gmail.com>2019-01-31 16:52:49 +0100
commit1658f5b62e34b6ed6c7b4c6569bc4a849096af23 (patch)
tree91b7eb56930b271d70e74fb48c86160c233c6baf /spec/javascripts/vue_shared/components/user_popover
parent88f2e9615cbb6ed976e65ca96af271d747ed8cce (diff)
downloadgitlab-ce-1658f5b62e34b6ed6c7b4c6569bc4a849096af23.tar.gz
Use sanitized user status message for user popover
Diffstat (limited to 'spec/javascripts/vue_shared/components/user_popover')
-rw-r--r--spec/javascripts/vue_shared/components/user_popover/user_popover_spec.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/javascripts/vue_shared/components/user_popover/user_popover_spec.js b/spec/javascripts/vue_shared/components/user_popover/user_popover_spec.js
index de3e0c149de..e8b41e8eeff 100644
--- a/spec/javascripts/vue_shared/components/user_popover/user_popover_spec.js
+++ b/spec/javascripts/vue_shared/components/user_popover/user_popover_spec.js
@@ -122,7 +122,7 @@ describe('User Popover Component', () => {
describe('status data', () => {
it('should show only message', () => {
const testProps = Object.assign({}, DEFAULT_PROPS);
- testProps.user.status = { message: 'Hello World' };
+ testProps.user.status = { message_html: 'Hello World' };
vm = mountComponent(UserPopover, {
...DEFAULT_PROPS,
@@ -134,12 +134,12 @@ describe('User Popover Component', () => {
it('should show message and emoji', () => {
const testProps = Object.assign({}, DEFAULT_PROPS);
- testProps.user.status = { emoji: 'basketball_player', message: 'Hello World' };
+ testProps.user.status = { emoji: 'basketball_player', message_html: 'Hello World' };
vm = mountComponent(UserPopover, {
...DEFAULT_PROPS,
target: document.querySelector('.js-user-link'),
- status: { emoji: 'basketball_player', message: 'Hello World' },
+ status: { emoji: 'basketball_player', message_html: 'Hello World' },
});
expect(vm.$el.textContent).toContain('Hello World');