diff options
author | Rajat Jain <rjain@gitlab.com> | 2019-04-15 12:58:30 +0300 |
---|---|---|
committer | Kushal Pandya <kushalspandya@gmail.com> | 2019-04-15 12:58:30 +0300 |
commit | b5ab1d91e377787e0711effebce073af76becc56 (patch) | |
tree | 3282fbee428f5948302eb622466f5527b01c9117 /spec/javascripts/lib | |
parent | d83eb63beef28a6229b4bf851ee34c51938e29c7 (diff) |
Display scoped labels in Issue Boards
This change brings new Scoped labels to Issue board as well.
With the last change, this was missed.
Diffstat (limited to 'spec/javascripts/lib')
-rw-r--r-- | spec/javascripts/lib/utils/common_utils_spec.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/javascripts/lib/utils/common_utils_spec.js b/spec/javascripts/lib/utils/common_utils_spec.js index da012e1d5f7..0cd077a6099 100644 --- a/spec/javascripts/lib/utils/common_utils_spec.js +++ b/spec/javascripts/lib/utils/common_utils_spec.js @@ -894,4 +894,14 @@ describe('common_utils', () => { expect(commonUtils.isInViewport(el)).toBe(false); }); }); + + describe('isScopedLabel', () => { + it('returns true when `::` is present in title', () => { + expect(commonUtils.isScopedLabel({ title: 'foo::bar' })).toBe(true); + }); + + it('returns false when `::` is not present', () => { + expect(commonUtils.isScopedLabel({ title: 'foobar' })).toBe(false); + }); + }); }); |