diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-10-09 17:51:39 +0100 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-10-09 17:51:39 +0100 |
commit | 98c9bf5f00cb82bfb8e4b8a2b260ac0848a2d216 (patch) | |
tree | 7df27566d81bf2821ae27ca105aedb9cb7470edb /spec/javascripts/lib/utils/text_utility_spec.js | |
parent | d5778237587a6a26c81ae80e7c5114bed372c1e9 (diff) | |
download | gitlab-ce-98c9bf5f00cb82bfb8e4b8a2b260ac0848a2d216.tar.gz |
Fix highCountTrim tests34841-todos
Diffstat (limited to 'spec/javascripts/lib/utils/text_utility_spec.js')
-rw-r--r-- | spec/javascripts/lib/utils/text_utility_spec.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/javascripts/lib/utils/text_utility_spec.js b/spec/javascripts/lib/utils/text_utility_spec.js index f1a975ba962..829b3ef5735 100644 --- a/spec/javascripts/lib/utils/text_utility_spec.js +++ b/spec/javascripts/lib/utils/text_utility_spec.js @@ -1,4 +1,4 @@ -import '~/lib/utils/text_utility'; +import { highCountTrim } from '~/lib/utils/text_utility'; describe('text_utility', () => { describe('gl.text.getTextWidth', () => { @@ -35,14 +35,14 @@ describe('text_utility', () => { }); }); - describe('gl.text.highCountTrim', () => { + describe('highCountTrim', () => { it('returns 99+ for count >= 100', () => { - expect(gl.text.highCountTrim(105)).toBe('99+'); - expect(gl.text.highCountTrim(100)).toBe('99+'); + expect(highCountTrim(105)).toBe('99+'); + expect(highCountTrim(100)).toBe('99+'); }); it('returns exact number for count < 100', () => { - expect(gl.text.highCountTrim(45)).toBe(45); + expect(highCountTrim(45)).toBe(45); }); }); |