summaryrefslogtreecommitdiff
path: root/spec/javascripts/lib
diff options
context:
space:
mode:
authorRajat Jain <rjain@gitlab.com>2019-04-15 09:58:30 +0000
committerKushal Pandya <kushalspandya@gmail.com>2019-04-15 09:58:30 +0000
commitb5ab1d91e377787e0711effebce073af76becc56 (patch)
tree3282fbee428f5948302eb622466f5527b01c9117 /spec/javascripts/lib
parentd83eb63beef28a6229b4bf851ee34c51938e29c7 (diff)
downloadgitlab-ce-b5ab1d91e377787e0711effebce073af76becc56.tar.gz
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.js10
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);
+ });
+ });
});