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:
authorEzekiel Kigbo <ekigbo@gitlab.com>2019-07-24 20:39:18 +0300
committerPaul Slaughter <pslaughter@gitlab.com>2019-07-24 20:39:18 +0300
commit78d57823cabc6ad7844439373a4bed253cfd1f6f (patch)
tree13cb0f71e2aadb74016b99fdb690f463eb392889 /spec/frontend
parent945eb2aeeebf1e4f6e235716ebd50b3f128f0ef9 (diff)
Removed pluralize function
Replaced instance of the `pluralize` js function with `n__` to follow our development guide.
Diffstat (limited to 'spec/frontend')
-rw-r--r--spec/frontend/lib/utils/text_utility_spec.js14
1 files changed, 0 insertions, 14 deletions
diff --git a/spec/frontend/lib/utils/text_utility_spec.js b/spec/frontend/lib/utils/text_utility_spec.js
index dc886d0db3b..b6f1aef9ce4 100644
--- a/spec/frontend/lib/utils/text_utility_spec.js
+++ b/spec/frontend/lib/utils/text_utility_spec.js
@@ -29,20 +29,6 @@ describe('text_utility', () => {
});
});
- describe('pluralize', () => {
- it('should pluralize given string', () => {
- expect(textUtils.pluralize('test', 2)).toBe('tests');
- });
-
- it('should pluralize when count is 0', () => {
- expect(textUtils.pluralize('test', 0)).toBe('tests');
- });
-
- it('should not pluralize when count is 1', () => {
- expect(textUtils.pluralize('test', 1)).toBe('test');
- });
- });
-
describe('dasherize', () => {
it('should replace underscores with dashes', () => {
expect(textUtils.dasherize('foo_bar_foo')).toEqual('foo-bar-foo');