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

index_spec.js « blob_viewers « components « repository « frontend « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d3ea46262e1f9cdfa702df4a644188e0421b24b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
import { loadViewer, viewers } from '~/repository/components/blob_viewers';
import { OPENAPI_FILE_TYPE, JSON_LANGUAGE } from '~/repository/constants';

describe('Blob Viewers index', () => {
  describe('loadViewer', () => {
    it('loads the openapi viewer', () => {
      const result = loadViewer(OPENAPI_FILE_TYPE, false, true, JSON_LANGUAGE);
      expect(result).toBe(viewers[OPENAPI_FILE_TYPE]);
    });
  });
});