message: Added tests for administration service
diff: -import { TestBed, inject } from '@angular/core/testing'
  -import { HttpClientModule } from '@angular/common/http'
  +import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing'
  +import { TestBed, inject, fakeAsync, tick } from '@angular/core/testing'
  import { AdministrationService } from './administration.service'
  @@ -7,7 +7,7 @@ describe('AdministrationService', () => {
  beforeEach(() => {
  TestBed.configureTestingModule({
  - imports: [HttpClientModule],
  + imports: [HttpClientTestingModule],
  providers: [AdministrationService]
  })
  })
  @@ -15,4 +15,18 @@ describe('AdministrationService', () => {
  it('should be created', inject([AdministrationService], (service: AdministrationService) => {
  expect(service).toBeTruthy()
  }))
  +
  + it('should get application version directly from the rest api', inject([AdministrationService, HttpTestingController],
  + fakeAsync((service: AdministrationService, httpMock: HttpTestingController) => {
  + let res
  + service.getApplicationVersion().subscribe((data) => res = data)
  + const req = httpMock.expectOne('http://localhost:3000/rest/admin/application-version')
  + req.flush({ version: 'apiResponse' })
  + tick()
  +
  + expect(req.request.method).toBe('GET')
  + expect(res).toBe('apiResponse')
  + httpMock.verify()
  + })
  + ))
  })
  