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
d871b9a4
Commit
d871b9a4
authored
Mar 31, 2021
by
peterhegman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove specs that were using `vm.$options.provide()`
parent
3f71e91a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
29 deletions
+1
-29
spec/frontend/members/index_spec.js
spec/frontend/members/index_spec.js
+1
-29
No files found.
spec/frontend/members/index_spec.js
View file @
d871b9a4
import
{
createWrapper
}
from
'
@vue/test-utils
'
;
import
{
createWrapper
}
from
'
@vue/test-utils
'
;
import
{
extendedWrapper
}
from
'
helpers/vue_test_utils_helper
'
;
import
MembersApp
from
'
~/members/components/app.vue
'
;
import
MembersApp
from
'
~/members/components/app.vue
'
;
import
{
initMembersApp
}
from
'
~/members/index
'
;
import
{
initMembersApp
}
from
'
~/members/index
'
;
import
{
membersJsonString
,
members
}
from
'
./mock_data
'
;
import
{
membersJsonString
,
members
}
from
'
./mock_data
'
;
...
@@ -17,7 +16,7 @@ describe('initMembersApp', () => {
...
@@ -17,7 +16,7 @@ describe('initMembersApp', () => {
requestFormatter
:
()
=>
({}),
requestFormatter
:
()
=>
({}),
filteredSearchBar
:
{
show
:
false
},
filteredSearchBar
:
{
show
:
false
},
});
});
wrapper
=
extendedWrapper
(
createWrapper
(
vm
)
);
wrapper
=
createWrapper
(
vm
);
};
};
beforeEach
(()
=>
{
beforeEach
(()
=>
{
...
@@ -43,33 +42,6 @@ describe('initMembersApp', () => {
...
@@ -43,33 +42,6 @@ describe('initMembersApp', () => {
expect
(
wrapper
.
find
(
MembersApp
).
exists
()).
toBe
(
true
);
expect
(
wrapper
.
find
(
MembersApp
).
exists
()).
toBe
(
true
);
});
});
it
(
'
sets `currentUserId` in provide/inject
'
,
()
=>
{
setup
();
expect
(
vm
.
$options
.
provide
().
currentUserId
).
toBe
(
123
);
});
describe
(
'
when `gon.current_user_id` is not set (user is not logged in)
'
,
()
=>
{
it
(
'
sets `currentUserId` as `null` in provide/inject
'
,
()
=>
{
window
.
gon
=
{};
setup
();
expect
(
vm
.
$options
.
provide
().
currentUserId
).
toBeNull
();
});
});
it
(
'
parses and sets `data-source-id` as `sourceId` in provide/inject
'
,
()
=>
{
setup
();
expect
(
vm
.
$options
.
provide
().
sourceId
).
toBe
(
234
);
});
it
(
'
parses and sets `data-can-manage-members` as `canManageMembers` in Vuex store
'
,
()
=>
{
setup
();
expect
(
vm
.
$options
.
provide
().
canManageMembers
).
toBe
(
true
);
});
it
(
'
parses and sets `members` in Vuex store
'
,
()
=>
{
it
(
'
parses and sets `members` in Vuex store
'
,
()
=>
{
setup
();
setup
();
...
...
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