diff options
author | Ezekiel Kigbo <ekigbo@gitlab.com> | 2019-07-24 20:39:18 +0300 |
---|---|---|
committer | Paul Slaughter <pslaughter@gitlab.com> | 2019-07-24 20:39:18 +0300 |
commit | 78d57823cabc6ad7844439373a4bed253cfd1f6f (patch) | |
tree | 13cb0f71e2aadb74016b99fdb690f463eb392889 /spec/frontend | |
parent | 945eb2aeeebf1e4f6e235716ebd50b3f128f0ef9 (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.js | 14 |
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'); |