Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/javascripts/ide/stores/modules/pane/actions_spec.js')
-rw-r--r--spec/javascripts/ide/stores/modules/pane/actions_spec.js66
1 files changed, 0 insertions, 66 deletions
diff --git a/spec/javascripts/ide/stores/modules/pane/actions_spec.js b/spec/javascripts/ide/stores/modules/pane/actions_spec.js
index 9345a58746a..e69de29bb2d 100644
--- a/spec/javascripts/ide/stores/modules/pane/actions_spec.js
+++ b/spec/javascripts/ide/stores/modules/pane/actions_spec.js
@@ -1,66 +0,0 @@
-import testAction from 'spec/helpers/vuex_action_helper';
-import * as actions from '~/ide/stores/modules/pane/actions';
-import * as types from '~/ide/stores/modules/pane/mutation_types';
-
-describe('IDE pane module actions', () => {
- const TEST_VIEW = { name: 'test' };
- const TEST_VIEW_KEEP_ALIVE = { name: 'test-keep-alive', keepAlive: true };
-
- describe('toggleOpen', () => {
- it('dispatches open if closed', done => {
- testAction(
- actions.toggleOpen,
- TEST_VIEW,
- { isOpen: false },
- [],
- [{ type: 'open', payload: TEST_VIEW }],
- done,
- );
- });
-
- it('dispatches close if opened', done => {
- testAction(actions.toggleOpen, TEST_VIEW, { isOpen: true }, [], [{ type: 'close' }], done);
- });
- });
-
- describe('open', () => {
- it('commits SET_OPEN', done => {
- testAction(actions.open, null, {}, [{ type: types.SET_OPEN, payload: true }], [], done);
- });
-
- it('commits SET_CURRENT_VIEW if view is given', done => {
- testAction(
- actions.open,
- TEST_VIEW,
- {},
- [
- { type: types.SET_OPEN, payload: true },
- { type: types.SET_CURRENT_VIEW, payload: TEST_VIEW.name },
- ],
- [],
- done,
- );
- });
-
- it('commits KEEP_ALIVE_VIEW if keepAlive is true', done => {
- testAction(
- actions.open,
- TEST_VIEW_KEEP_ALIVE,
- {},
- [
- { type: types.SET_OPEN, payload: true },
- { type: types.SET_CURRENT_VIEW, payload: TEST_VIEW_KEEP_ALIVE.name },
- { type: types.KEEP_ALIVE_VIEW, payload: TEST_VIEW_KEEP_ALIVE.name },
- ],
- [],
- done,
- );
- });
- });
-
- describe('close', () => {
- it('commits SET_OPEN', done => {
- testAction(actions.close, null, {}, [{ type: types.SET_OPEN, payload: false }], [], done);
- });
- });
-});