diff options
3 files changed, 9 insertions, 13 deletions
diff --git a/spec/javascripts/commit/pipelines/pipelines_store_spec.js.es6 b/spec/javascripts/commit/pipelines/pipelines_store_spec.js.es6 index a5a16544ffb..559723bafcc 100644 --- a/spec/javascripts/commit/pipelines/pipelines_store_spec.js.es6 +++ b/spec/javascripts/commit/pipelines/pipelines_store_spec.js.es6 @@ -1,10 +1,10 @@ -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', () => { @@ -23,7 +23,7 @@ describe('Store', () => { }, ]; - store.store(pipelines); + store.storePipelines(pipelines); expect(store.state.pipelines.length).toBe(pipelines.length); }); diff --git a/spec/javascripts/vue_shared/components/pipelines_table_row_spec.js.es6 b/spec/javascripts/vue_shared/components/pipelines_table_row_spec.js.es6 index e83a1749e82..412abfd5e41 100644 --- a/spec/javascripts/vue_shared/components/pipelines_table_row_spec.js.es6 +++ b/spec/javascripts/vue_shared/components/pipelines_table_row_spec.js.es6 @@ -1,7 +1,5 @@ -/* 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; diff --git a/spec/javascripts/vue_shared/components/pipelines_table_spec.js.es6 b/spec/javascripts/vue_shared/components/pipelines_table_spec.js.es6 index adc9ea904cc..d80c91c1cb0 100644 --- a/spec/javascripts/vue_shared/components/pipelines_table_spec.js.es6 +++ b/spec/javascripts/vue_shared/components/pipelines_table_spec.js.es6 @@ -1,8 +1,6 @@ -/* 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'); |