diff options
Diffstat (limited to 'spec/frontend/lib/utils/table_utility_spec.js')
-rw-r--r-- | spec/frontend/lib/utils/table_utility_spec.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/frontend/lib/utils/table_utility_spec.js b/spec/frontend/lib/utils/table_utility_spec.js index 0ceccbe4c74..df9006f4909 100644 --- a/spec/frontend/lib/utils/table_utility_spec.js +++ b/spec/frontend/lib/utils/table_utility_spec.js @@ -9,6 +9,13 @@ describe('table_utility', () => { }); }); + describe('thWidthPercent', () => { + it('returns the width class including default table header classes', () => { + const width = 50; + expect(tableUtils.thWidthPercent(width)).toBe(`gl-w-${width}p`); + }); + }); + describe('sortObjectToString', () => { it('returns the expected sorting string ending in "DESC" when sortDesc is true', () => { expect(tableUtils.sortObjectToString({ sortBy: 'mergedAt', sortDesc: true })).toBe( |