2016-12-29 16:42:48 -05:00
|
|
|
require('pipelines');
|
2016-12-09 10:13:20 -05:00
|
|
|
|
|
|
|
(() => {
|
|
|
|
describe('Pipelines', () => {
|
2016-12-30 19:14:33 -05:00
|
|
|
preloadFixtures('static/pipeline_graph.html.raw');
|
2016-12-09 10:13:20 -05:00
|
|
|
|
|
|
|
beforeEach(() => {
|
2016-12-30 19:14:33 -05:00
|
|
|
loadFixtures('static/pipeline_graph.html.raw');
|
2016-12-09 10:13:20 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
it('should be defined', () => {
|
|
|
|
expect(window.gl.Pipelines).toBeDefined();
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should create a `Pipelines` instance without options', () => {
|
|
|
|
expect(() => { new window.gl.Pipelines(); }).not.toThrow(); //eslint-disable-line
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should create a `Pipelines` instance with options', () => {
|
|
|
|
const pipelines = new window.gl.Pipelines({ foo: 'bar' });
|
|
|
|
|
|
|
|
expect(pipelines.pipelineGraph).toBeDefined();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
})();
|