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:
authorPhil Hughes <me@iamphill.com>2018-12-07 20:00:51 +0300
committerPhil Hughes <me@iamphill.com>2018-12-07 20:00:51 +0300
commit0f827531b051f2d467b58f2f350dbb4a5a6eddbf (patch)
treee21a2002843bcdd9052f105cb896e73adf70aee3 /spec/javascripts/image_diff
parenta89a73c1cc8576d75afc947cec14f19e1ae8a30d (diff)
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.js4
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);
});