This is the codeAbility Sharing Platform! Learn more about the
codeAbility Sharing Platform
.
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
codeAbility Sharing Platform
Manage
Activity
Members
Labels
Plan
Issues
43
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
development
sharing
codeAbility Sharing Platform
Commits
b2acfafd
Commit
b2acfafd
authored
3 years ago
by
Michael Breu
Browse files
Options
Downloads
Patches
Plain Diff
Still fixing tests
parent
e483e702
Branches
Branches containing commit
Tags
v1.2
Tags containing commit
1 merge request
!62
created achievementService and separated some functionality out of...
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/test/javascript/spec/app/editorialPages/pages.component.spec.ts
+1
-3
1 addition, 3 deletions
...avascript/spec/app/editorialPages/pages.component.spec.ts
src/test/javascript/spec/helpers/mock-pages.service.ts
+0
-3
0 additions, 3 deletions
src/test/javascript/spec/helpers/mock-pages.service.ts
with
1 addition
and
6 deletions
src/test/javascript/spec/app/editorialPages/pages.component.spec.ts
+
1
−
3
View file @
b2acfafd
...
...
@@ -9,7 +9,6 @@ import { RouterTestingModule } from '@angular/router/testing';
import
{
PagesResolve
}
from
'
app/editorialPages/pages.route
'
;
import
{
Location
}
from
'
@angular/common
'
;
import
{
of
}
from
'
rxjs
'
;
import
{
By
}
from
'
@angular/platform-browser
'
;
import
{
markedOptionsFactory
,
MyRenderer
}
from
'
app/editorialPages/editorialPages.module
'
;
describe
(
'
Component Tests
'
,
()
=>
{
...
...
@@ -90,7 +89,6 @@ describe('Component Tests', () => {
fixtureMarkDown
=
TestBed
.
createComponent
(
MarkdownComponent
);
compMarkDown
=
fixtureMarkDown
.
componentInstance
;
router
=
TestBed
.
get
(
Router
);
route
=
TestBed
.
get
(
ActivatedRoute
);
location
=
TestBed
.
get
(
Location
);
// router = fixture.debugElement.injector.get(Router);
router
.
initialNavigation
();
...
...
@@ -145,7 +143,7 @@ describe('Component Tests', () => {
fixtureMD
.
detectChanges
();
compMarkDown
.
data
=
compMD
.
page
.
content
;
le
t
renderedResult
=
compMarkDown
.
render
(
compMarkDown
.
data
);
cons
t
renderedResult
=
compMarkDown
.
render
(
compMarkDown
.
data
);
fixtureMarkDown
.
detectChanges
();
const
nativeElem
=
fixtureMarkDown
.
debugElement
.
nativeElement
;
...
...
This diff is collapsed.
Click to expand it.
src/test/javascript/spec/helpers/mock-pages.service.ts
+
0
−
3
View file @
b2acfafd
...
...
@@ -3,9 +3,6 @@ import { of } from 'rxjs';
import
{
SpyObject
}
from
'
./spyobject
'
;
import
{
PagesService
}
from
'
app/shared/service/pages-service
'
;
import
{
CheckFrequency
}
from
'
app/shared/model/enumerations/check-frequency.model
'
;
import
{
HttpHeaders
,
HttpResponse
}
from
'
@angular/common/http
'
;
import
path
=
require
(
'
path
'
);
export
class
MockPagesService
extends
SpyObject
{
getSpy
:
Spy
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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