Skip to content

Commit

Permalink
fix: tabs test
Browse files Browse the repository at this point in the history
  • Loading branch information
felixroos committed Feb 17, 2020
1 parent 93439db commit 10952fb
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions packages/ui/src/lib/utility/tabs/tabs.component.spec.ts
@@ -1,18 +1,24 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { TabsComponent } from '../../utility/tabs/tabs.component';
import { utilityModuleConfig } from '../utility.module';
import { TabComponent, LoginFormComponent, SignupFormComponent, FocusDirective, IoModule } from '@ec.components/ui/public_api';
import { CommonModule } from '@angular/common';
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
import { KeycommandsService } from '../keycommands/keycommands.service';

describe('TabsComponent', () => {
let component: TabsComponent;
let fixture: ComponentFixture<TabsComponent>;
/* let children: Array<TabComponent>; */

beforeEach(async(() => {
TestBed.configureTestingModule({
...utilityModuleConfig,
imports: [...utilityModuleConfig.imports, RouterTestingModule],
}).compileComponents();
TestBed.configureTestingModule(
{
declarations: [TabsComponent, TabComponent, LoginFormComponent, SignupFormComponent, FocusDirective],
imports: [RouterTestingModule, FormsModule, ReactiveFormsModule, IoModule, CommonModule],
providers: [KeycommandsService],
}
).compileComponents();
}));

beforeEach(() => {
Expand Down

0 comments on commit 10952fb

Please sign in to comment.