Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
881
Issues
881
List
Boards
Labels
Service Desk
Milestones
Merge Requests
46
Merge Requests
46
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
88538e9c
Commit
88538e9c
authored
4 hours ago
by
Marcelo Rivera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fix): spec tests
parent
2627ae77
epic/permissions-28
1 merge request
!581
WIP: Permissions
Pipeline
#88219731
passed with stages
in 55 minutes and 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
src/app/modules/groups/groups-join-button.spec.ts
src/app/modules/groups/groups-join-button.spec.ts
+14
-0
No files found.
src/app/modules/groups/groups-join-button.spec.ts
View file @
88538e9c
...
...
@@ -16,6 +16,10 @@ import { sessionMock } from '../../../tests/session-mock.spec';
import
{
RouterTestingModule
}
from
'
@angular/router/testing
'
;
import
{
LoginReferrerService
}
from
'
../../services/login-referrer.service
'
;
import
{
loginReferrerServiceMock
}
from
'
../../mocks/services/login-referrer-service-mock.spec
'
;
import
{
FeaturesService
}
from
'
../../services/features.service
'
;
import
{
featuresServiceMock
}
from
'
../../../tests/features-service-mock.spec
'
;
import
{
PermissionsService
}
from
'
../../common/services/permissions/permissions.service
'
;
import
{
MockService
}
from
'
../../utils/mock
'
;
describe
(
'
GroupsJoinButton
'
,
()
=>
{
let
fixture
:
ComponentFixture
<
GroupsJoinButton
>
;
...
...
@@ -63,11 +67,21 @@ describe('GroupsJoinButton', () => {
{
provide
:
Session
,
useValue
:
sessionMock
},
{
provide
:
GroupsService
,
deps
:
[
clientMock
,
uploadMock
]
},
{
provide
:
LoginReferrerService
,
useValue
:
loginReferrerServiceMock
},
{
provide
:
FeaturesService
,
useValue
:
featuresServiceMock
,
},
{
provide
:
PermissionsService
,
useValue
:
MockService
(
PermissionsService
),
},
],
}).
compileComponents
();
}));
beforeEach
(()
=>
{
featuresServiceMock
.
mock
(
'
permissions
'
,
false
);
fixture
=
TestBed
.
createComponent
(
GroupsJoinButton
);
comp
=
fixture
.
componentInstance
;
...
...
This diff is collapsed.
Click to expand it.
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