From 82c371956ba6e5608847713f12700214ceb6a1da Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Fri, 31 Aug 2018 22:56:18 +0200 Subject: [PATCH] Corrent InputComponentManagerService. --- src/app/app.component.spec.ts | 2 +- src/app/app.component.ts | 2 +- src/app/app.module.ts | 2 +- src/app/input-component-manager.service.spec.ts | 15 +++++++++++++++ ...vice.ts => input-component-manager.service.ts} | 4 +++- 5 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 src/app/input-component-manager.service.spec.ts rename src/app/{inputcomponentmanager.service.ts => input-component-manager.service.ts} (95%) diff --git a/src/app/app.component.spec.ts b/src/app/app.component.spec.ts index 0454090..ab98f52 100644 --- a/src/app/app.component.spec.ts +++ b/src/app/app.component.spec.ts @@ -1,7 +1,7 @@ import {AppComponent} from './app.component'; import {async, ComponentFixture, TestBed} from '@angular/core/testing'; import {FormsModule} from '@angular/forms'; -import {InputComponentManagerService} from './inputcomponentmanager.service'; +import {InputComponentManagerService} from './input-component-manager.service'; import {Step} from './step'; import {ConverterRegistryService} from './converter-registry.service'; import {Converter} from './converter/converter'; diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 45ad694..820811b 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -1,6 +1,6 @@ import {Component, OnInit} from '@angular/core'; import {ConverterRegistryService} from './converter-registry.service'; -import {InputComponentManagerService} from './inputcomponentmanager.service'; +import {InputComponentManagerService} from './input-component-manager.service'; import {Step} from './step'; import {Converter} from './converter/converter'; diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 88e730c..efad288 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -2,7 +2,7 @@ import {BrowserModule} from '@angular/platform-browser'; import {NgModule} from '@angular/core'; import {AppComponent} from './app.component'; import {ConverterRegistryService} from './converter-registry.service'; -import {InputComponentManagerService} from './inputcomponentmanager.service'; +import {InputComponentManagerService} from './input-component-manager.service'; import {NativeLibraryWrapperService} from './nativelibrarywrapper.service'; import {FormsModule} from '@angular/forms'; import {VersionComponent} from './version/version.component'; diff --git a/src/app/input-component-manager.service.spec.ts b/src/app/input-component-manager.service.spec.ts new file mode 100644 index 0000000..b15c3bc --- /dev/null +++ b/src/app/input-component-manager.service.spec.ts @@ -0,0 +1,15 @@ +import { TestBed, inject } from '@angular/core/testing'; + +import { InputComponentManagerService } from './input-component-manager.service'; + +describe('InputComponentManagerService', () => { + beforeEach(() => { + TestBed.configureTestingModule({ + providers: [InputComponentManagerService] + }); + }); + + it('should be created', inject([InputComponentManagerService], (service: InputComponentManagerService) => { + expect(service).toBeTruthy(); + })); +}); diff --git a/src/app/inputcomponentmanager.service.ts b/src/app/input-component-manager.service.ts similarity index 95% rename from src/app/inputcomponentmanager.service.ts rename to src/app/input-component-manager.service.ts index 136d1b6..45e8d02 100644 --- a/src/app/inputcomponentmanager.service.ts +++ b/src/app/input-component-manager.service.ts @@ -1,7 +1,9 @@ import {Injectable} from '@angular/core'; import {Step} from './step'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class InputComponentManagerService { private components: Step[] = [];