Skip to content

Commit

Permalink
fix: add missing imports in test suite for components
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermejcgois committed Dec 8, 2017
1 parent 4b1b64d commit 7f8b415
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib/src/component/date-format.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('DateFormatComponent', () => {

beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [ CommonModule, FormsModule ],
imports: [ CommonModule, FormsModule ],
declarations: [ DateFormatComponent, MaskedInputDirective ],
providers: [
{ provide: DateFormatModel, useClass: DateFormatModelMock },
Expand Down
20 changes: 17 additions & 3 deletions src/lib/src/component/mat/mat-date-format.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@
import { CommonModule } from '@angular/common';
import { forwardRef } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { FormsModule } from '@angular/forms';
import { NG_VALUE_ACCESSOR, NG_VALIDATORS } from '@angular/forms';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { NG_VALUE_ACCESSOR, NG_VALIDATORS } from '@angular/forms';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import {
MatInputModule,
MatDatepickerModule,
MatNativeDateModule
} from '@angular/material';

/* Third-party modules */
import { MaskedInputDirective } from 'angular2-text-mask';
Expand All @@ -21,7 +27,15 @@ describe('MatDateFormatComponent', () => {

beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [ CommonModule, FormsModule ],
imports: [
CommonModule,
FormsModule,
ReactiveFormsModule,
BrowserAnimationsModule,
MatInputModule,
MatDatepickerModule,
MatNativeDateModule
],
declarations: [ MatDateFormatComponent, MaskedInputDirective ],
providers: [
{ provide: DateFormatModel, useClass: DateFormatModelMock },
Expand Down

0 comments on commit 7f8b415

Please sign in to comment.