Fix naming, add tests #5

Merged
manuel merged 19 commits from feature/use-proper-dirstructure into develop 2018-09-01 01:34:35 +02:00
5 changed files with 21 additions and 4 deletions
Showing only changes of commit 82c371956b - Show all commits

View file

@ -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';

View file

@ -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';

View file

@ -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';

View file

@ -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();
}));
});

View file

@ -1,7 +1,9 @@
import {Injectable} from '@angular/core';
import {Step} from './step';
@Injectable()
@Injectable({
providedIn: 'root'
})
export class InputComponentManagerService {
private components: Step[] = [];