Add test to v3Path service

pull/4734/head
Alex Dik 8 years ago
parent bcf18b8ad7
commit cc7b797374
  1. 8
      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());
});
});

Loading…
Cancel
Save