Commit b40f7147 authored by Mike Greiling's avatar Mike Greiling

fix broken frontend tests

parent 3ea1f91e
require('~commit/pipelines/pipelines_store'); require('~/commit/pipelines/pipelines_store');
describe('Store', () => { describe('Store', () => {
const store = gl.commits.pipelines.PipelinesStore; let store;
beforeEach(() => { beforeEach(() => {
store.create(); store = new gl.commits.pipelines.PipelinesStore();
}); });
it('should start with a blank state', () => { it('should start with a blank state', () => {
...@@ -23,7 +23,7 @@ describe('Store', () => { ...@@ -23,7 +23,7 @@ describe('Store', () => {
}, },
]; ];
store.store(pipelines); store.storePipelines(pipelines);
expect(store.state.pipelines.length).toBe(pipelines.length); expect(store.state.pipelines.length).toBe(pipelines.length);
}); });
......
/* global pipeline */ require('~/vue_shared/components/pipelines_table_row');
const pipeline = require('../../commit/pipelines/mock_data');
require('~vue_shared/components/pipelines_table_row');
require('./mock_data');
describe('Pipelines Table Row', () => { describe('Pipelines Table Row', () => {
let component; let component;
......
/* global pipeline */ require('~/vue_shared/components/pipelines_table');
require('~/lib/utils/datetime_utility');
require('~vue_shared/components/pipelines_table'); pipeline = require('../../commit/pipelines/mock_data');
require('~lib/utils/datetime_utility');
require('./mock_data');
describe('Pipelines Table', () => { describe('Pipelines Table', () => {
preloadFixtures('static/environments/element.html.raw'); preloadFixtures('static/environments/element.html.raw');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment