summaryrefslogtreecommitdiff
path: root/spec/javascripts/pipelines_spec.js
blob: 81ac589f4e600c8d99540b35f63e38edcb995e1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import Pipelines from '~/pipelines';

// Fix for phantomJS
if (!Element.prototype.matches && Element.prototype.webkitMatchesSelector) {
  Element.prototype.matches = Element.prototype.webkitMatchesSelector;
}

describe('Pipelines', () => {
  preloadFixtures('static/pipeline_graph.html.raw');

  beforeEach(() => {
    loadFixtures('static/pipeline_graph.html.raw');
  });

  it('should be defined', () => {
    expect(Pipelines).toBeDefined();
  });

  it('should create a `Pipelines` instance without options', () => {
    expect(() => { new Pipelines(); }).not.toThrow(); //eslint-disable-line
  });
});