diff options
author | Phil Hughes <me@iamphill.com> | 2017-02-01 15:23:01 +0000 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2017-02-03 17:02:44 +0300 |
commit | 4428bb27b78bf8f75d8ff15c227a8dfbb82aaa8e (patch) | |
tree | d5cfeca79348d875fe6cb4b6de2b94ed0c1d5bc0 /spec/javascripts/lib | |
parent | b4113dba0378936024c496b15b3c8a5f1c0a1021 (diff) | |
download | gitlab-ce-4428bb27b78bf8f75d8ff15c227a8dfbb82aaa8e.tar.gz |
Removed Masonry, instead uses groups of data
Added some error handling which reverts the frontend data changes &
notifies the user
Diffstat (limited to 'spec/javascripts/lib')
-rw-r--r-- | spec/javascripts/lib/utils/text_utility_spec.js.es6 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/javascripts/lib/utils/text_utility_spec.js.es6 b/spec/javascripts/lib/utils/text_utility_spec.js.es6 index e97356b65d5..329e18f405a 100644 --- a/spec/javascripts/lib/utils/text_utility_spec.js.es6 +++ b/spec/javascripts/lib/utils/text_utility_spec.js.es6 @@ -21,5 +21,19 @@ expect(largeFont > regular).toBe(true); }); }); + + describe('gl.text.pluralize', () => { + it('returns pluralized', () => { + expect(gl.text.pluralize('test', 2)).toBe('tests'); + }); + + it('returns pluralized', () => { + expect(gl.text.pluralize('test', 0)).toBe('tests'); + }); + + it('does not return pluralized', () => { + expect(gl.text.pluralize('test', 1)).toBe('test'); + }); + }); }); })(); |