diff options
| author | Phil Hughes <me@iamphill.com> | 2018-12-07 17:00:51 +0000 |
|---|---|---|
| committer | Phil Hughes <me@iamphill.com> | 2018-12-07 17:00:51 +0000 |
| commit | 0f827531b051f2d467b58f2f350dbb4a5a6eddbf (patch) | |
| tree | e21a2002843bcdd9052f105cb896e73adf70aee3 /spec/javascripts/image_diff | |
| parent | a89a73c1cc8576d75afc947cec14f19e1ae8a30d (diff) | |
| download | gitlab-ce-0f827531b051f2d467b58f2f350dbb4a5a6eddbf.tar.gz | |
Fixed styling of image comment badges on commits
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/54849
Diffstat (limited to 'spec/javascripts/image_diff')
| -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); }); |
