search.component.spec.ts 892 Bytes
Newer Older
Vitali Stupin's avatar
Initial    
Vitali Stupin committed
1
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
Vitali Stupin's avatar
Vitali Stupin committed
2
3
4
import { TranslateModule } from '@ngx-translate/core';
import { HttpClientModule } from '@angular/common/http';
import { FormsModule } from '@angular/forms';
Vitali Stupin's avatar
Initial    
Vitali Stupin committed
5
6
7
8
9
10
11
12
import { SearchComponent } from './search.component';

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

  beforeEach(async(() => {
    TestBed.configureTestingModule({
Vitali Stupin's avatar
Vitali Stupin committed
13
14
15
16
17
18
      declarations: [ SearchComponent ],
      imports: [
        FormsModule,
        TranslateModule.forRoot(),
        HttpClientModule
      ]
Vitali Stupin's avatar
Initial    
Vitali Stupin committed
19
20
21
22
23
24
25
26
27
28
29
30
31
    })
    .compileComponents();
  }));

  beforeEach(() => {
    fixture = TestBed.createComponent(SearchComponent);
    component = fixture.componentInstance;
    fixture.detectChanges();
  });

  it('should create', () => {
    expect(component).toBeTruthy();
  });
Vitali Stupin's avatar
Vitali Stupin committed
32
});