Welcome to mirror list, hosted at ThFree Co, Russian Federation.

constants_spec.js « droplab « filtered_search « frontend « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9c1caf90ac088d4bed50160257ddb259e94ca46d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import * as constants from '~/filtered_search/droplab/constants';

describe('constants', () => {
  describe('DATA_TRIGGER', () => {
    it('should be `data-dropdown-trigger`', () => {
      expect(constants.DATA_TRIGGER).toBe('data-dropdown-trigger');
    });
  });

  describe('DATA_DROPDOWN', () => {
    it('should be `data-dropdown`', () => {
      expect(constants.DATA_DROPDOWN).toBe('data-dropdown');
    });
  });

  describe('SELECTED_CLASS', () => {
    it('should be `droplab-item-selected`', () => {
      expect(constants.SELECTED_CLASS).toBe('droplab-item-selected');
    });
  });

  describe('ACTIVE_CLASS', () => {
    it('should be `droplab-item-active`', () => {
      expect(constants.ACTIVE_CLASS).toBe('droplab-item-active');
    });
  });

  describe('TEMPLATE_REGEX', () => {
    it('should be a handlebars templating syntax regex', () => {
      expect(constants.TEMPLATE_REGEX).toEqual(/\{\{(.+?)\}\}/g);
    });
  });

  describe('IGNORE_CLASS', () => {
    it('should be `droplab-item-ignore`', () => {
      expect(constants.IGNORE_CLASS).toBe('droplab-item-ignore');
    });
  });
});