From cc7b79737480c0380dbdb467b22f32555a552016 Mon Sep 17 00:00:00 2001 From: Alex Dik Date: Fri, 29 Jul 2016 17:11:43 +0200 Subject: [PATCH] Add test to v3Path service --- .../app/components/api/api-paths/v3-path.service.test.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/app/components/api/api-paths/v3-path.service.test.ts b/frontend/app/components/api/api-paths/v3-path.service.test.ts index eae7fe9a20..0ea59aacd6 100644 --- a/frontend/app/components/api/api-paths/v3-path.service.test.ts +++ b/frontend/app/components/api/api-paths/v3-path.service.test.ts @@ -34,15 +34,19 @@ describe('v3Path service', () => { beforeEach(angular.mock.module(opApiModule.name)); beforeEach(angular.mock.inject(function (_v3Path_, _apiPaths_) { - [v3Path, apiPaths] = arguments; + [v3Path, apiPaths] = _.toArray(arguments); })); it('should exist', () => { expect(v3Path).to.exist; }); - it('should be the same as apiPath.v3', () => { + it('should be the same object as apiPaths.v3', () => { expect(v3Path).to.equal(apiPaths.v3); }); + + it('should return the same value as apiPats.v3', () => { + expect(v3Path()).to.equal(apiPaths.v3()); + }); });