Skip to content

Commit

Permalink
Update tests to import HttpClientModule
Browse files Browse the repository at this point in the history
  • Loading branch information
mhamern authored and dimpu committed Apr 16, 2019
1 parent e094490 commit 4f039f0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/app/path/path.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { PathComponent } from './path.component';
import { NgxMdModule } from 'projects/ngx-md/src/public_api';
import { HttpClientModule } from '@angular/common/http';

describe('PathComponent', () => {
let component: PathComponent;
Expand All @@ -11,7 +12,7 @@ describe('PathComponent', () => {
async(() => {
TestBed.configureTestingModule({
declarations: [ PathComponent ],
imports: [ NgxMdModule.forRoot() ]
imports: [ NgxMdModule.forRoot(), HttpClientModule ]
}).compileComponents();
})
);
Expand Down
3 changes: 2 additions & 1 deletion src/app/tables/tables.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { TablesComponent } from './tables.component';
import { NgxMdModule } from 'projects/ngx-md/src/public_api';
import { HttpClientModule } from '@angular/common/http';

describe('TablesComponent', () => {
let component: TablesComponent;
Expand All @@ -10,7 +11,7 @@ describe('TablesComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [TablesComponent],
imports: [NgxMdModule.forRoot()]
imports: [NgxMdModule.forRoot(), HttpClientModule]
}).compileComponents();
}));

Expand Down
3 changes: 2 additions & 1 deletion src/app/todo/todo.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { TodoComponent } from './todo.component';
import { NgxMdModule } from 'projects/ngx-md/src/public_api';
import { HttpClientModule } from '@angular/common/http';

describe('TodoComponent', () => {
let component: TodoComponent;
Expand All @@ -10,7 +11,7 @@ describe('TodoComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [TodoComponent],
imports: [NgxMdModule.forRoot()]
imports: [NgxMdModule.forRoot(), HttpClientModule]
}).compileComponents();
}));

Expand Down
3 changes: 2 additions & 1 deletion src/app/variable-bind/variable-bind.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { VariableBindComponent } from './variable-bind.component';
import { NgxMdModule } from 'projects/ngx-md/src/public_api';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';

describe('VariableBindComponent', () => {
let component: VariableBindComponent;
Expand All @@ -12,7 +13,7 @@ describe('VariableBindComponent', () => {
async(() => {
TestBed.configureTestingModule({
declarations: [ VariableBindComponent ],
imports: [ NgxMdModule.forRoot(), FormsModule, ReactiveFormsModule ]
imports: [ NgxMdModule.forRoot(), HttpClientModule, FormsModule, ReactiveFormsModule ]
}).compileComponents();
})
);
Expand Down

0 comments on commit 4f039f0

Please sign in to comment.