Skip to content
Snippets Groups Projects
Commit b40f7147 authored by Mike Greiling's avatar Mike Greiling
Browse files

fix broken frontend tests

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