diff options
author | Jose <jvargas@gitlab.com> | 2018-06-05 00:39:44 +0300 |
---|---|---|
committer | Jose <jvargas@gitlab.com> | 2018-06-05 00:39:44 +0300 |
commit | 11a9389c4f6c72509c0c4aa3be6227a972adab78 (patch) | |
tree | 2dfffcca11d839d6c26fbe5dc0b611deaf59b880 /spec | |
parent | 3571b97effd81f9a84f238f918544c6e5c625b76 (diff) |
fix labels showing up with no title
Diffstat (limited to 'spec')
-rw-r--r-- | spec/javascripts/labels_select_spec.js | 4 |
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); + }); }); }); |