Skip to content

Commit

Permalink
Fix front-end tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jdubois committed Oct 27, 2017
1 parent 1203686 commit 61d6a0f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/main/webapp/app/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import { JhiApplicationsService } from '../registry';

import { VERSION } from '../app.constants';
import { EurekaStatusService } from './eureka.status.service';
import {ProfileService} from '../layouts/profiles/profile.service';
import {LoginOAuth2Service} from '../shared/oauth2/login-oauth2.service';
import { ProfileService } from '../layouts/profiles/profile.service';
import { LoginOAuth2Service } from '../shared/oauth2/login-oauth2.service';

@Component({
selector: 'jhi-home',
Expand Down
2 changes: 0 additions & 2 deletions src/test/javascript/spec/app/home/home.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { ComponentFixture, TestBed, async, inject, fakeAsync, tick } from '@angular/core/testing';
import { MockBackend } from '@angular/http/testing';
import { Http, BaseRequestOptions } from '@angular/http';
import { Observable } from 'rxjs';
import { EventManager } from 'ng-jhipster';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { ComponentFixture, TestBed, async, inject, fakeAsync, tick } from '@angular/core/testing';
import { MockBackend } from '@angular/http/testing';
import { Http, BaseRequestOptions } from '@angular/http';
import { Observable } from 'rxjs';

import { JHipsterRegistryTestModule } from '../../../test.module';
Expand Down
6 changes: 6 additions & 0 deletions src/test/javascript/spec/test.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,18 @@ import { MockBackend } from '@angular/http/testing';
import { Http, BaseRequestOptions } from '@angular/http';
import { SessionStorageService } from 'ng2-webstorage';
import { JhiRefreshService } from '../../../main/webapp/app/shared/refresh/refresh.service';
import { LoginOAuth2Service } from '../../../main/webapp/app/shared/oauth2/login-oauth2.service';
import { AuthSessionServerProvider } from '../../../main/webapp/app/shared/auth/auth-session.service';
import { ProfileService } from '../../../main/webapp/app/layouts/profiles/profile.service';

@NgModule({
providers: [
MockBackend,
SessionStorageService,
JhiRefreshService,
LoginOAuth2Service,
AuthSessionServerProvider,
ProfileService,
BaseRequestOptions,
{
provide: Http,
Expand Down

0 comments on commit 61d6a0f

Please sign in to comment.