merge conflict
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
import { TestBed, async } from '@angular/core/testing';
|
||||
import { RouterTestingModule } from '@angular/router/testing';
|
||||
import { AppComponent } from './app.component';
|
||||
import { ElectronService } from './providers/electron.service';
|
||||
|
||||
import { TranslateService, TranslateModule } from '@ngx-translate/core';
|
||||
import { ElectronService } from 'app/providers/electron.service';
|
||||
|
||||
describe('AppComponent', () => {
|
||||
beforeEach(async(() => {
|
||||
@@ -12,12 +10,12 @@ describe('AppComponent', () => {
|
||||
AppComponent
|
||||
],
|
||||
providers: [
|
||||
ElectronService,
|
||||
{ provide: TranslateService, useClass: TranslateServiceStub }
|
||||
ElectronService
|
||||
],
|
||||
imports: [RouterTestingModule,
|
||||
TranslateModule.forRoot()
|
||||
]
|
||||
imports: [
|
||||
RouterTestingModule,
|
||||
TranslateModule.forRoot()
|
||||
]
|
||||
}).compileComponents();
|
||||
}));
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import 'zone.js/dist/zone-mix';
|
||||
import 'reflect-metadata';
|
||||
import 'polyfills';
|
||||
import '../polyfills';
|
||||
import { BrowserModule } from '@angular/platform-browser';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
|
||||
@@ -29,6 +29,6 @@ describe('HomeComponent', () => {
|
||||
|
||||
it('should render title in a h1 tag', async(() => {
|
||||
const compiled = fixture.debugElement.nativeElement;
|
||||
expect(compiled.querySelector('h1').textContent).toBeTruthy();
|
||||
expect(compiled.querySelector('h1').textContent).toContain('PAGES.HOME.TITLE');
|
||||
}));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user