diff --git a/frontend/app/admin/admin.service.spec.ts b/frontend/app/admin/admin.service.spec.ts new file mode 100644 index 00000000..b1f7e34e --- /dev/null +++ b/frontend/app/admin/admin.service.spec.ts @@ -0,0 +1,30 @@ +import {it, inject, beforeEachProviders} from "@angular/core/testing"; +import {BaseRequestOptions, Http} from "@angular/http"; +import {MockBackend} from "@angular/http/testing"; +import {provide} from "@angular/core"; +import "rxjs/Rx"; +import {NetworkService} from "../model/network/network.service"; +import {AdminService} from "./admin.service"; + + +describe('AdminService', () => { + + + beforeEachProviders(() => [ + MockBackend, + BaseRequestOptions, + provide(Http, { + useFactory: (backend, options) => { + return new Http(backend, options); + }, deps: [MockBackend, BaseRequestOptions] + }), + NetworkService, + AdminService + ]); + + + it('placeholder test', inject([], () => { + expect(true).toBe(true); + })); + +}); diff --git a/frontend/app/gallery/gallery.service.spec.ts b/frontend/app/gallery/gallery.service.spec.ts new file mode 100644 index 00000000..0eabb8c0 --- /dev/null +++ b/frontend/app/gallery/gallery.service.spec.ts @@ -0,0 +1,30 @@ +import {it, inject, beforeEachProviders} from "@angular/core/testing"; +import {BaseRequestOptions, Http} from "@angular/http"; +import {MockBackend} from "@angular/http/testing"; +import {provide} from "@angular/core"; +import "rxjs/Rx"; +import {NetworkService} from "../model/network/network.service"; +import {GalleryService} from "./gallery.service"; + + +describe('GalleryService', () => { + + + beforeEachProviders(() => [ + MockBackend, + BaseRequestOptions, + provide(Http, { + useFactory: (backend, options) => { + return new Http(backend, options); + }, deps: [MockBackend, BaseRequestOptions] + }), + NetworkService, + GalleryService + ]); + + + it('placeholder test', inject([], () => { + expect(true).toBe(true); + })); + +}); diff --git a/frontend/app/gallery/search/autocomplete.service.spec.ts b/frontend/app/gallery/search/autocomplete.service.spec.ts new file mode 100644 index 00000000..37cb9f81 --- /dev/null +++ b/frontend/app/gallery/search/autocomplete.service.spec.ts @@ -0,0 +1,30 @@ +import {it, inject, beforeEachProviders} from "@angular/core/testing"; +import {BaseRequestOptions, Http} from "@angular/http"; +import {MockBackend} from "@angular/http/testing"; +import {provide} from "@angular/core"; +import "rxjs/Rx"; +import {AutoCompleteService} from "./autocomplete.service"; +import {NetworkService} from "../../model/network/network.service"; + + +describe('AutoCompleteService', () => { + + + beforeEachProviders(() => [ + MockBackend, + BaseRequestOptions, + provide(Http, { + useFactory: (backend, options) => { + return new Http(backend, options); + }, deps: [MockBackend, BaseRequestOptions] + }), + NetworkService, + AutoCompleteService + ]); + + + it('placeholder test', inject([], () => { + expect(true).toBe(true); + })); + +});