This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit b2acfafd authored by Michael Breu's avatar Michael Breu :speech_balloon:
Browse files

Still fixing tests

parent e483e702
Branches
Tags v1.2
1 merge request!62created achievementService and separated some functionality out of...
......@@ -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;
let renderedResult = compMarkDown.render(compMarkDown.data);
const renderedResult = compMarkDown.render(compMarkDown.data);
fixtureMarkDown.detectChanges();
const nativeElem = fixtureMarkDown.debugElement.nativeElement;
......
......@@ -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;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment