diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2018-12-10 11:55:47 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2018-12-10 11:55:47 +0300 |
commit | 5618606301cd7ef182b5a658dbabf254e0330f9b (patch) | |
tree | b236cea04d8187ad87f123a1f2c690f2d5d69d21 /spec | |
parent | f124328b2919fb1ed6b1fa65a9ce8855ec2e0420 (diff) | |
parent | 0f827531b051f2d467b58f2f350dbb4a5a6eddbf (diff) |
Merge branch 'commit-badge-style-fix' into 'master'
Fixed styling of image comment badges on commits
Closes #54849
See merge request gitlab-org/gitlab-ce!23659
Diffstat (limited to 'spec')
-rw-r--r-- | spec/javascripts/image_diff/helpers/badge_helper_spec.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/javascripts/image_diff/helpers/badge_helper_spec.js b/spec/javascripts/image_diff/helpers/badge_helper_spec.js index 8ea05203d00..b3001d45e3c 100644 --- a/spec/javascripts/image_diff/helpers/badge_helper_spec.js +++ b/spec/javascripts/image_diff/helpers/badge_helper_spec.js @@ -61,6 +61,10 @@ describe('badge helper', () => { expect(buttonEl).toBeDefined(); }); + it('should add badge classes', () => { + expect(buttonEl.className).toContain('badge badge-pill'); + }); + it('should set the badge text', () => { expect(buttonEl.innerText).toEqual(badgeText); }); |