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
path: root/spec
diff options
context:
space:
mode:
authorJose <jvargas@gitlab.com>2018-06-05 00:39:44 +0300
committerJose <jvargas@gitlab.com>2018-06-05 00:39:44 +0300
commit11a9389c4f6c72509c0c4aa3be6227a972adab78 (patch)
tree2dfffcca11d839d6c26fbe5dc0b611deaf59b880 /spec
parent3571b97effd81f9a84f238f918544c6e5c625b76 (diff)
fix labels showing up with no title
Diffstat (limited to 'spec')
-rw-r--r--spec/javascripts/labels_select_spec.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/javascripts/labels_select_spec.js b/spec/javascripts/labels_select_spec.js
index a2b89c0aef5..386e00bfd0c 100644
--- a/spec/javascripts/labels_select_spec.js
+++ b/spec/javascripts/labels_select_spec.js
@@ -40,5 +40,9 @@ describe('LabelsSelect', () => {
it('generated label item template has correct label styles', () => {
expect($labelEl.find('span.label').attr('style')).toBe(`background-color: ${label.color}; color: ${label.text_color};`);
});
+
+ it('generated label item has a badge class', () => {
+ expect($labelEl.find('span').hasClass('badge')).toEqual(true);
+ });
});
});