Skip to content

Commit

Permalink
web-ui: Fix home.component.spec
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexITC committed Jan 18, 2019
1 parent efea7d0 commit a363dae
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions web-ui/src/app/components/home/home.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,31 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { CUSTOM_ELEMENTS_SCHEMA, Component } from '@angular/core';

import { HomeComponent } from './home.component';
import { APP_BASE_HREF } from '@angular/common';

import { TabsModule } from 'ngx-bootstrap/tabs';
import { TranslateModule } from '@ngx-translate/core';

import { HomeComponent } from '../../components/home/home.component';

describe('HomeComponent', () => {
let component: HomeComponent;
let fixture: ComponentFixture<HomeComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ HomeComponent ]
})
.compileComponents();
declarations: [
HomeComponent
],
imports: [
TranslateModule.forRoot(),
TabsModule.forRoot()
],
providers: [
{ provide: APP_BASE_HREF, useValue: '/' }
],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
});
}));

beforeEach(() => {
Expand Down

0 comments on commit a363dae

Please sign in to comment.