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
b4770826
Commit
b4770826
authored
Jul 29, 2020
by
Eulyeon Ko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove mediator from the spec
parent
6695c072
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
spec/frontend/sidebar/lock/issuable_lock_form_spec.js
spec/frontend/sidebar/lock/issuable_lock_form_spec.js
+0
-12
No files found.
spec/frontend/sidebar/lock/issuable_lock_form_spec.js
View file @
b4770826
...
@@ -9,7 +9,6 @@ import { ISSUABLE_TYPE_ISSUE, ISSUABLE_TYPE_MR } from './constants';
...
@@ -9,7 +9,6 @@ import { ISSUABLE_TYPE_ISSUE, ISSUABLE_TYPE_MR } from './constants';
describe
(
'
IssuableLockForm
'
,
()
=>
{
describe
(
'
IssuableLockForm
'
,
()
=>
{
let
wrapper
;
let
wrapper
;
let
store
;
let
store
;
let
mediator
;
let
issuableType
;
// Either ISSUABLE_TYPE_ISSUE or ISSUABLE_TYPE_MR
let
issuableType
;
// Either ISSUABLE_TYPE_ISSUE or ISSUABLE_TYPE_MR
const
setIssuableType
=
pageType
=>
{
const
setIssuableType
=
pageType
=>
{
...
@@ -21,15 +20,6 @@ describe('IssuableLockForm', () => {
...
@@ -21,15 +20,6 @@ describe('IssuableLockForm', () => {
const
findEditLink
=
()
=>
wrapper
.
find
(
'
[data-testid="edit-link"]
'
);
const
findEditLink
=
()
=>
wrapper
.
find
(
'
[data-testid="edit-link"]
'
);
const
findEditForm
=
()
=>
wrapper
.
find
(
EditForm
);
const
findEditForm
=
()
=>
wrapper
.
find
(
EditForm
);
const
initMediator
=
()
=>
{
mediator
=
{
service
:
{
update
:
Promise
.
resolve
(
true
),
},
store
:
{},
};
};
const
initStore
=
isLocked
=>
{
const
initStore
=
isLocked
=>
{
if
(
issuableType
===
ISSUABLE_TYPE_ISSUE
)
{
if
(
issuableType
===
ISSUABLE_TYPE_ISSUE
)
{
store
=
createStore
();
store
=
createStore
();
...
@@ -45,7 +35,6 @@ describe('IssuableLockForm', () => {
...
@@ -45,7 +35,6 @@ describe('IssuableLockForm', () => {
store
,
store
,
propsData
:
{
propsData
:
{
isEditable
:
true
,
isEditable
:
true
,
mediator
,
...
props
,
...
props
,
},
},
});
});
...
@@ -62,7 +51,6 @@ describe('IssuableLockForm', () => {
...
@@ -62,7 +51,6 @@ describe('IssuableLockForm', () => {
`
(
'
In $pageType page
'
,
({
pageType
})
=>
{
`
(
'
In $pageType page
'
,
({
pageType
})
=>
{
beforeEach
(()
=>
{
beforeEach
(()
=>
{
setIssuableType
(
pageType
);
setIssuableType
(
pageType
);
initMediator
();
});
});
describe
.
each
`
describe
.
each
`
...
...
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