ui user feedback 1810
[sdc.git] / openecomp-ui / test / licenseModel / licenseKeyGroups / test.js
index 1326025..ec091a4 100644 (file)
@@ -153,6 +153,17 @@ describe('License Key Groups Module Tests', function() {
             };
         });
 
+        mockRest.addHandler('fetch', ({ data, options, baseUrl }) => {
+            expect(baseUrl).toEqual(
+                `/onboarding-api/v1.0/vendor-license-models/${LICENSE_MODEL_ID}/versions/${
+                    version.id
+                }/license-key-groups`
+            );
+            expect(data).toEqual(undefined);
+            expect(options).toEqual(undefined);
+            return { results: [] };
+        });
+
         return LicenseKeyGroupsActionHelper.deleteLicenseKeyGroup(
             store.dispatch,
             {
@@ -237,6 +248,17 @@ describe('License Key Groups Module Tests', function() {
             };
         });
 
+        mockRest.addHandler('fetch', ({ data, options, baseUrl }) => {
+            expect(baseUrl).toEqual(
+                `/onboarding-api/v1.0/vendor-license-models/${LICENSE_MODEL_ID}/versions/${
+                    version.id
+                }/license-key-groups`
+            );
+            expect(data).toEqual(undefined);
+            expect(options).toEqual(undefined);
+            return { results: [LicenseKeyGroupStore] };
+        });
+
         return LicenseKeyGroupsActionHelper.saveLicenseKeyGroup(
             store.dispatch,
             {
@@ -338,6 +360,17 @@ describe('License Key Groups Module Tests', function() {
             };
         });
 
+        mockRest.addHandler('fetch', ({ data, options, baseUrl }) => {
+            expect(baseUrl).toEqual(
+                `/onboarding-api/v1.0/vendor-license-models/${LICENSE_MODEL_ID}/versions/${
+                    version.id
+                }/license-key-groups`
+            );
+            expect(data).toEqual(undefined);
+            expect(options).toEqual(undefined);
+            return { results: [licenseKeyGroupUpdatedData] };
+        });
+
         return LicenseKeyGroupsActionHelper.saveLicenseKeyGroup(
             store.dispatch,
             {