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
ba8f77d9
Commit
ba8f77d9
authored
Mar 10, 2021
by
Florie Guibert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Boards - Do no use groupId to check if board is for group
Review feedback
parent
03fe9386
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
spec/frontend/boards/board_new_issue_deprecated_spec.js
spec/frontend/boards/board_new_issue_deprecated_spec.js
+2
-5
spec/frontend/boards/components/board_new_issue_spec.js
spec/frontend/boards/components/board_new_issue_spec.js
+1
-1
No files found.
spec/frontend/boards/board_new_issue_deprecated_spec.js
View file @
ba8f77d9
/* global List */
import
{
mount
,
createLocalVue
}
from
'
@vue/test-utils
'
;
import
{
mount
}
from
'
@vue/test-utils
'
;
import
MockAdapter
from
'
axios-mock-adapter
'
;
import
Vue
from
'
vue
'
;
import
Vuex
from
'
vuex
'
;
...
...
@@ -11,9 +11,7 @@ import axios from '~/lib/utils/axios_utils';
import
'
~/boards/models/list
'
;
import
{
listObj
,
boardsMockInterceptor
}
from
'
./mock_data
'
;
const
localVue
=
createLocalVue
();
localVue
.
use
(
Vuex
);
Vue
.
use
(
Vuex
);
describe
(
'
Issue boards new issue form
'
,
()
=>
{
let
wrapper
;
...
...
@@ -58,7 +56,6 @@ describe('Issue boards new issue form', () => {
list
,
},
store
,
localVue
,
provide
:
{
groupId
:
null
,
},
...
...
spec/frontend/boards/components/board_new_issue_spec.js
View file @
ba8f77d9
...
...
@@ -30,7 +30,7 @@ describe('Issue boards new issue form', () => {
const
store
=
new
Vuex
.
Store
({
state
:
{
selectedProject
:
mockGroupProjects
[
0
]
},
actions
:
{
addListNewIssue
:
addListNewIssuesSpy
},
getters
:
{
isGroupBoard
:
()
=>
false
},
getters
:
{
isGroupBoard
:
()
=>
false
,
isProjectBoard
:
()
=>
true
},
});
wrapper
=
shallowMount
(
BoardNewIssue
,
{
...
...
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