diff --git a/e2e/app.e2e-spec.ts b/e2e/app.e2e-spec.ts index 80eb963..0d144fd 100755 --- a/e2e/app.e2e-spec.ts +++ b/e2e/app.e2e-spec.ts @@ -1,6 +1,6 @@ -import { HomeworkPage } from './app.po'; +import {HomeworkPage} from './app.po'; -describe('homework App', function() { +describe('homework App', function () { let page: HomeworkPage; beforeEach(() => { diff --git a/e2e/app.po.ts b/e2e/app.po.ts index 0c96ca8..c03b24e 100755 --- a/e2e/app.po.ts +++ b/e2e/app.po.ts @@ -1,4 +1,4 @@ -import { browser, element, by } from 'protractor'; +import {browser, element, by} from 'protractor'; export class HomeworkPage { navigateTo() { diff --git a/karma.conf.js b/karma.conf.js index 1f2613a..6733dec 100755 --- a/karma.conf.js +++ b/karma.conf.js @@ -12,13 +12,13 @@ module.exports = function (config) { require('angular-cli/plugins/karma') ], files: [ - { pattern: './src/test.ts', watched: false } + {pattern: './src/test.ts', watched: false} ], preprocessors: { './src/test.ts': ['angular-cli'] }, mime: { - 'text/x-typescript': ['ts','tsx'] + 'text/x-typescript': ['ts', 'tsx'] }, remapIstanbulReporter: { reports: { @@ -31,8 +31,8 @@ module.exports = function (config) { environment: 'dev' }, reporters: config.angularCli && config.angularCli.codeCoverage - ? ['progress', 'karma-remap-istanbul'] - : ['progress'], + ? ['progress', 'karma-remap-istanbul'] + : ['progress'], port: 9876, colors: true, logLevel: config.LOG_INFO, diff --git a/protractor.conf.js b/protractor.conf.js index ffded70..9d9bd59 100755 --- a/protractor.conf.js +++ b/protractor.conf.js @@ -18,15 +18,16 @@ exports.config = { jasmineNodeOpts: { showColors: true, defaultTimeoutInterval: 30000, - print: function() {} + print: function () { + } }, useAllAngular2AppRoots: true, - beforeLaunch: function() { + beforeLaunch: function () { require('ts-node').register({ project: 'e2e' }); }, - onPrepare: function() { + onPrepare: function () { jasmine.getEnv().addReporter(new SpecReporter()); } }; diff --git a/src/app/app.component.spec.ts b/src/app/app.component.spec.ts index 5be2cb3..ce696e7 100755 --- a/src/app/app.component.spec.ts +++ b/src/app/app.component.spec.ts @@ -1,7 +1,7 @@ /* tslint:disable:no-unused-variable */ -import { TestBed, async } from '@angular/core/testing'; -import { AppComponent } from './app.component'; +import {TestBed, async} from '@angular/core/testing'; +import {AppComponent} from './app.component'; describe('AppComponent', () => { beforeEach(() => { diff --git a/src/app/app.component.ts b/src/app/app.component.ts index ff63e05..c2f8b42 100755 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -1,4 +1,4 @@ -import { Component } from '@angular/core'; +import {Component} from '@angular/core'; @Component({ selector: 'app-root', diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 67ae491..daa00c6 100755 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -1,9 +1,9 @@ -import { BrowserModule } from '@angular/platform-browser'; -import { NgModule } from '@angular/core'; -import { FormsModule } from '@angular/forms'; -import { HttpModule } from '@angular/http'; +import {BrowserModule} from '@angular/platform-browser'; +import {NgModule} from '@angular/core'; +import {FormsModule} from '@angular/forms'; +import {HttpModule} from '@angular/http'; -import { AppComponent } from './app.component'; +import {AppComponent} from './app.component'; @NgModule({ declarations: [ @@ -17,4 +17,5 @@ import { AppComponent } from './app.component'; providers: [], bootstrap: [AppComponent] }) -export class AppModule { } +export class AppModule { +} diff --git a/src/index.html b/src/index.html index f5c9c40..65b2374 100755 --- a/src/index.html +++ b/src/index.html @@ -9,6 +9,6 @@
-