diff options
author | Eric Eastwood <contact@ericeastwood.com> | 2017-12-05 10:35:37 +0300 |
---|---|---|
committer | Eric Eastwood <contact@ericeastwood.com> | 2017-12-08 13:30:13 +0300 |
commit | b87c53c72d7cb3226200b025ee7d7ca8fccece42 (patch) | |
tree | a20581b9deace7b0aa5e3147c6f9ee67d0b7dc01 /spec/javascripts/image_diff | |
parent | 7fabc892f251740dbd9a4755baede662e6854870 (diff) |
Fix comment on image discussion icon alignment
Fix https://gitlab.com/gitlab-org/gitlab-ce/issues/39608
Use SVG icons to avoid having to position things
See https://gitlab.com/gitlab-org/gitlab-ce/issues/39608#note_50088917
Diffstat (limited to 'spec/javascripts/image_diff')
-rw-r--r-- | spec/javascripts/image_diff/helpers/badge_helper_spec.js | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/spec/javascripts/image_diff/helpers/badge_helper_spec.js b/spec/javascripts/image_diff/helpers/badge_helper_spec.js index fb9c7e59031..ce3add1fd90 100644 --- a/spec/javascripts/image_diff/helpers/badge_helper_spec.js +++ b/spec/javascripts/image_diff/helpers/badge_helper_spec.js @@ -89,15 +89,8 @@ describe('badge helper', () => { }); it('should create icon comment button', () => { - const iconEl = buttonEl.querySelector('i'); + const iconEl = buttonEl.querySelector('svg'); expect(iconEl).toBeDefined(); - expect(iconEl.classList.contains('fa')).toEqual(true); - expect(iconEl.classList.contains('fa-comment-o')).toEqual(true); - }); - - it('should have .image-comment-badge.inverted in button class', () => { - expect(buttonEl.classList.contains('image-comment-badge')).toEqual(true); - expect(buttonEl.classList.contains('inverted')).toEqual(true); }); }); |