Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/javascripts/vue_shared/components/user_avatar_link_spec.js')
-rw-r--r--spec/javascripts/vue_shared/components/user_avatar_link_spec.js12
1 files changed, 2 insertions, 10 deletions
diff --git a/spec/javascripts/vue_shared/components/user_avatar_link_spec.js b/spec/javascripts/vue_shared/components/user_avatar_link_spec.js
index 770daa9f0de..52e450e9ba5 100644
--- a/spec/javascripts/vue_shared/components/user_avatar_link_spec.js
+++ b/spec/javascripts/vue_shared/components/user_avatar_link_spec.js
@@ -35,13 +35,11 @@ describe('User Avatar Link Component', function () {
});
it('should render <a> as a child element', function () {
- const componentLinkTag = this.userAvatarLink.$el.outerHTML;
- expect(componentLinkTag).toContain('<a');
+ expect(this.userAvatarLink.$el.tagName).toBe('A');
});
it('should have <img> as a child element', function () {
- const componentImgTag = this.userAvatarLink.$el.outerHTML;
- expect(componentImgTag).toContain('<img');
+ expect(this.userAvatarLink.$el.querySelector('img')).not.toBeNull();
});
it('should return neccessary props as defined', function () {
@@ -49,10 +47,4 @@ describe('User Avatar Link Component', function () {
expect(this.userAvatarLink[key]).toBeDefined();
});
});
-
- it('should include props in the rendered output', function () {
- _.each(this.propsData, (val) => {
- expect(this.userAvatarLink.$el.outerHTML).toContain(val);
- });
- });
});