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

ci_status_icon_spec.js « vue_shared « javascripts « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b6621d6054d0d0955b73cfb8c1c63f4452c46d09 (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
import { borderlessStatusIconEntityMap, statusIconEntityMap } from '~/vue_shared/ci_status_icons';

describe('CI status icons', () => {
  const statuses = [
    'icon_status_canceled',
    'icon_status_created',
    'icon_status_failed',
    'icon_status_manual',
    'icon_status_pending',
    'icon_status_running',
    'icon_status_skipped',
    'icon_status_success',
    'icon_status_warning',
  ];

  it('should have a dictionary for borderless icons', () => {
    statuses.forEach((status) => {
      expect(borderlessStatusIconEntityMap[status]).toBeDefined();
    });
  });

  it('should have a dictionary for icons', () => {
    statuses.forEach((status) => {
      expect(statusIconEntityMap[status]).toBeDefined();
    });
  });
});