[CORD-1652] Fixed links to related models in table visualization

Change-Id: Ibb5cb3b433e690d2752f188d51a734ddc5f1cfd0
diff --git a/src/app/core/services/helpers/config.helpers.spec.ts b/src/app/core/services/helpers/config.helpers.spec.ts
index 957998c..f0fb2a7 100644
--- a/src/app/core/services/helpers/config.helpers.spec.ts
+++ b/src/app/core/services/helpers/config.helpers.spec.ts
@@ -155,10 +155,18 @@
       it('should return the state for a given model', () => {
         expect(service.stateFromCoreModel('Test')).toBe('xos.core.tests');
       });
-
+    });
+    describe('stateWithParams', () => {
       it('should return the state with params for a given model', () => {
         expect(service.stateWithParams('Test', {id: 1})).toBe('xos.core.tests({id: 1})');
       });
+      it('should return the state with params for a given relation', () => {
+        expect(service.relatedStateWithParams('Test', '1')).toBe('xos.core.tests({id: 1})');
+      });
+
+      it('should return the state with params for usage in js', () => {
+        expect(service.stateWithParamsForJs('Test', {id: 1})).toEqual({ name: 'xos.core.tests', params: Object({ id: 1 }) });
+      });
     });
   });