Skip to content

Commit

Permalink
fix(stark-ui): removed TranslateService from breadcrumb component
Browse files Browse the repository at this point in the history
  • Loading branch information
Mallikki committed Aug 24, 2018
1 parent 48562ab commit f40027f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Component, DebugElement, NO_ERRORS_SCHEMA, ViewChild } from "@angular/c
import { STARK_LOGGING_SERVICE, STARK_ROUTING_SERVICE, StarkRoutingTransitionHook } from "@nationalbankbelgium/stark-core";
import { CommonModule } from "@angular/common";
import { NoopAnimationsModule } from "@angular/platform-browser/animations";
import { TranslateModule, TranslateService } from "@ngx-translate/core";
import { TranslateModule } from "@ngx-translate/core";
import { MockStarkRoutingService, MockStarkLoggingService } from "@nationalbankbelgium/stark-core/testing";
import { By } from "@angular/platform-browser";
import Spy = jasmine.Spy;
Expand Down Expand Up @@ -82,8 +82,7 @@ describe("DemoBreadcrumbComponent", () => {
declarations: [StarkBreadcrumbComponent, TestHostComponent],
providers: [
{ provide: STARK_LOGGING_SERVICE, useValue: new MockStarkLoggingService() },
{ provide: STARK_ROUTING_SERVICE, useClass: MockStarkRoutingService },
TranslateService
{ provide: STARK_ROUTING_SERVICE, useClass: MockStarkRoutingService }
],
schemas: [NO_ERRORS_SCHEMA] // tells the Angular compiler to ignore unrecognized elements and attributes (selectionChange)
}).compileComponents();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
StarkLoggingService,
StarkRoutingTransitionHook
} from "@nationalbankbelgium/stark-core";
import { TranslateService } from "@ngx-translate/core";

/**
* Name of the component
Expand Down Expand Up @@ -51,8 +50,7 @@ export class StarkBreadcrumbComponent implements OnInit, OnDestroy {

public constructor(
@Inject(STARK_LOGGING_SERVICE) public logger: StarkLoggingService,
@Inject(STARK_ROUTING_SERVICE) public routingService: StarkRoutingService,
public translateService: TranslateService
@Inject(STARK_ROUTING_SERVICE) public routingService: StarkRoutingService
) {}

/**
Expand Down

0 comments on commit f40027f

Please sign in to comment.