401a2ec0b1
Fix undefined variable in es5
25 lines
643 B
JavaScript
25 lines
643 B
JavaScript
//= require pipelines
|
|
|
|
(() => {
|
|
describe('Pipelines', () => {
|
|
fixture.preload('pipeline_graph');
|
|
|
|
beforeEach(() => {
|
|
fixture.load('pipeline_graph');
|
|
});
|
|
|
|
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();
|
|
});
|
|
});
|
|
})();
|