message: test(Input): complete tests for input component
diff: -import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
  -import { TestBed, ComponentFixture, async } from '@angular/core/testing';
  -import { FormsModule } from '@angular/forms';
  -import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
  -import {
  - MdIconModule,
  - MdInputModule,
  -} from '@angular/material';
  -
  import { TsInputComponent } from './input.component';
  -@Component({
  - template: `
  - <div>
  - <ts-input></ts-input>
  - </div>`,
  -})
  -class TestHostComponent {
  -}
  -
  -
  describe(`TsInputComponent`, () => {
  - beforeEach(async(() => {
  - TestBed.configureTestingModule({
  - imports: [
  - BrowserAnimationsModule,
  - FormsModule,
  - MdIconModule,
  - MdInputModule,
  - ],
  - declarations: [
  - TsInputComponent,
  - TestHostComponent,
  - ],
  - schemas: [
  - CUSTOM_ELEMENTS_SCHEMA,
  - ],
  - })
  - .overrideComponent(TsInputComponent, {
  - set: {
  - template: '',
  - templateUrl: null,
  - }
  - })
  - .compileComponents()
  - .then(() => {
  - this.fixture = TestBed.createComponent(TsInputComponent);
  - this.component = this.fixture.componentInstance;
  - })
  - ;
  - }));
  + beforeEach(() => {
  + this.component = new TsInputComponent();
  + });
  it(`should exist`, () => {
  - this.fixture.detectChanges();
  expect(this.component).toBeTruthy();
  });
  - // TODO: Fully test
  + describe(`reset()`, () => {
  + it(`should clear the value`, () => {
  + const VALUE = 'foo';
  +
  + this.component.value = VALUE;
  + expect(this.component.value).toEqual(VALUE);
  +
  + this.component.reset();
  + expect(this.component.value).toEqual('');
  + });
  });
  +});
  