diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-02-07 12:26:47 -0600 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-02-07 12:26:47 -0600 |
commit | b40f71479c536c64f0791e29c3aa7aff63e8c548 (patch) | |
tree | db40bac1fc52bbd24b9efa9985fd46f47204d955 | |
parent | 3ea1f91e1ee9434b47c744303c409c077eb89f14 (diff) | |
download | gitlab-ce-b40f71479c536c64f0791e29c3aa7aff63e8c548.tar.gz |
fix broken frontend tests
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'); |