summaryrefslogtreecommitdiff
path: root/spec/frontend/lib/utils/table_utility_spec.js
blob: 75b9252aa40ac570436c42948ad676600644f6e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
import { DEFAULT_TH_CLASSES } from '~/lib/utils/constants';
import * as tableUtils from '~/lib/utils/table_utility';

describe('table_utility', () => {
  describe('thWidthClass', () => {
    it('returns the width class including default table header classes', () => {
      const width = 50;
      expect(tableUtils.thWidthClass(width)).toBe(`gl-w-${width}p ${DEFAULT_TH_CLASSES}`);
    });
  });
});