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[] = [];