Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
077d0f7c
Commit
077d0f7c
authored
Jun 02, 2020
by
Nicolò Maria Mezzopera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove default store export
- store - page importing store
parent
45fbe94c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
app/assets/javascripts/registry/explorer/stores/index.js
app/assets/javascripts/registry/explorer/stores/index.js
+1
-3
spec/frontend/registry/explorer/pages/index_spec.js
spec/frontend/registry/explorer/pages/index_spec.js
+3
-1
No files found.
app/assets/javascripts/registry/explorer/stores/index.js
View file @
077d0f7c
...
...
@@ -7,6 +7,7 @@ import state from './state';
Vue
.
use
(
Vuex
);
// eslint-disable-next-line import/prefer-default-export
export
const
createStore
=
()
=>
new
Vuex
.
Store
({
state
,
...
...
@@ -14,6 +15,3 @@ export const createStore = () =>
actions
,
mutations
,
});
// Deprecated and to be removed
export
default
createStore
();
spec/frontend/registry/explorer/pages/index_spec.js
View file @
077d0f7c
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
component
from
'
~/registry/explorer/pages/index.vue
'
;
import
store
from
'
~/registry/explorer/stores/
'
;
import
{
createStore
}
from
'
~/registry/explorer/stores/
'
;
describe
(
'
List Page
'
,
()
=>
{
let
wrapper
;
let
store
;
const
findRouterView
=
()
=>
wrapper
.
find
({
ref
:
'
router-view
'
});
...
...
@@ -17,6 +18,7 @@ describe('List Page', () => {
};
beforeEach
(()
=>
{
store
=
createStore
();
mountComponent
();
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment