Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
boco-frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
idatt2106_2022_02
boco-frontend
Commits
b916a519
Commit
b916a519
authored
2 years ago
by
Erik Borgeteien Hansen
Browse files
Options
Downloads
Patches
Plain Diff
fix test with mock of store
parent
9e52fcfe
No related branches found
Branches containing commit
No related tags found
1 merge request
!88
Community admin
Pipeline
#180154
failed
2 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/unit/component-tests/community-component-tests/community-hamburger.spec.js
+10
-13
10 additions, 13 deletions
...sts/community-component-tests/community-hamburger.spec.js
with
10 additions
and
13 deletions
tests/unit/component-tests/community-component-tests/community-hamburger.spec.js
+
10
−
13
View file @
b916a519
import
{
shallowMount
}
from
"
@vue/test-utils
"
;
import
CommunityHamburger
from
"
@/components/CommunityComponents/CommunityHamburger.vue
"
;
import
{
route
,
router
,
$route
,
$router
}
from
"
../../mock-router
"
;
import
{
route
,
router
,
$route
,
$router
,
store
,
$store
,
}
from
"
../../mock-router
"
;
describe
(
"
CommunityHamburger elements rendering
"
,
()
=>
{
let
wrapper
;
beforeEach
(()
=>
{
wrapper
=
shallowMount
(
CommunityHamburger
,
{
//passing prop to component
props
:
{
adminStatus
:
true
,
community
:
{
communityId
:
1
,
name
:
"
String
"
,
description
:
"
String
"
,
visibility
:
0
,
location
:
"
String
"
,
picture
:
"
String
"
,
},
},
global
:
{
mocks
:
{
store
,
$store
,
route
,
router
,
$route
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment