Add semicolon at the end of this statement 51/94251/1
authoranushadasari <danush10@in.ibm.com>
Sun, 25 Aug 2019 15:11:02 +0000 (20:41 +0530)
committeranushadasari <danush10@in.ibm.com>
Sun, 25 Aug 2019 15:11:24 +0000 (20:41 +0530)
In JavaScript, the semicolon (;) is optional as a statement separator, but omitting semicolons can be confusing, and lead to unexpected results because a semicolon is implicitly inserted at the end of each line.

Issue-ID: VID-595
Change-Id: I7895047b2ae64e3fcca479bb26f45d1a0bd097ac
Signed-off-by: anushadasari <danush10@in.ibm.com>
vid-app-common/src/main/webapp/app/vid/test/testViewEdit.js

index 5b4d8bd..a09a8ce 100755 (executable)
@@ -47,7 +47,7 @@ var testViewEditController = function(COMPONENT, DataService, PropertyService,
         */\r
 \r
        DataService.setSubscriberName("Mobility");\r
-       DataService.setGlobalCustomerId("CUSTID12345")\r
+       DataService.setGlobalCustomerId("CUSTID12345");\r
        DataService.setServiceType("Mobility Type 1");\r
        DataService.setServiceInstanceName("Example Service Instance Name");\r
        DataService.setServiceName("Mobility Service 1");\r
@@ -61,7 +61,7 @@ var testViewEditController = function(COMPONENT, DataService, PropertyService,
 \r
        setTestMode();\r
 \r
-    }\r
+    };\r
 \r
     $scope.autoStartTest = function() {\r
        /*\r
@@ -80,7 +80,7 @@ var testViewEditController = function(COMPONENT, DataService, PropertyService,
            // $scope.deleteVnf();\r
            // $scope.createVfModule();\r
        }, 500);\r
-    }\r
+    };\r
 \r
     /*\r
      * This block of code is only used for testing.\r
@@ -165,14 +165,14 @@ var testViewEditController = function(COMPONENT, DataService, PropertyService,
            componentId : COMPONENT.SERVICE,\r
            callbackFunction : callbackFunction\r
        });\r
-    }\r
+    };\r
 \r
     $scope.createVnf = function() {\r
 \r
        DataService.setModelId("91238134091820938018230918230989");\r
        DataService.setModelInstanceName("VNF_MODEL_INSTANCE_NAME");\r
 \r
-       DataService.setCloudRegionTenantList(exampleCloudRegionTenantList)\r
+       DataService.setCloudRegionTenantList(exampleCloudRegionTenantList);\r
        DataService.setServiceIdList(exampleServiceIdList);\r
 \r
        // Data used to create MSO "relatedInstanceList" object\r
@@ -183,7 +183,7 @@ var testViewEditController = function(COMPONENT, DataService, PropertyService,
            componentId : COMPONENT.VNF,\r
            callbackFunction : callbackFunction\r
        });\r
-    }\r
+    };\r
 \r
     $scope.createVfModule = function() {\r
        DataService\r
@@ -211,7 +211,7 @@ var testViewEditController = function(COMPONENT, DataService, PropertyService,
            componentId : COMPONENT.VF_MODULE,\r
            callbackFunction : callbackFunction\r
        });\r
-    }\r
+    };\r
 \r
     $scope.createVolumeGroup = function() {\r
 \r
@@ -230,7 +230,7 @@ var testViewEditController = function(COMPONENT, DataService, PropertyService,
            componentId : COMPONENT.VOLUME_GROUP,\r
            callbackFunction : callbackFunction\r
        });\r
-    }\r
+    };\r
 \r
     $scope.createNetwork = function() {\r
 \r
@@ -248,7 +248,7 @@ var testViewEditController = function(COMPONENT, DataService, PropertyService,
            componentId : COMPONENT.NETWORK,\r
            callbackFunction : callbackFunction\r
        });\r
-    }\r
+    };\r
 \r
     /*\r
      * Delete functions\r
@@ -263,7 +263,7 @@ var testViewEditController = function(COMPONENT, DataService, PropertyService,
            componentId : COMPONENT.SERVICE,\r
            callbackFunction : callbackFunction\r
        });\r
-    }\r
+    };\r
 \r
     $scope.deleteVnf = function() {\r
 \r
@@ -279,7 +279,7 @@ var testViewEditController = function(COMPONENT, DataService, PropertyService,
            componentId : COMPONENT.VNF,\r
            callbackFunction : callbackFunction\r
        });\r
-    }\r
+    };\r
 \r
     $scope.deleteVfModule = function() {\r
 \r
@@ -296,7 +296,7 @@ var testViewEditController = function(COMPONENT, DataService, PropertyService,
            componentId : COMPONENT.VF_MODULE,\r
            callbackFunction : callbackFunction\r
        });\r
-    }\r
+    };\r
 \r
     $scope.deleteVolumeGroup = function() {\r
 \r
@@ -313,7 +313,7 @@ var testViewEditController = function(COMPONENT, DataService, PropertyService,
            componentId : COMPONENT.VOLUME_GROUP,\r
            callbackFunction : callbackFunction\r
        });\r
-    }\r
+    };\r
 \r
     $scope.deleteNetwork = function() {\r
 \r
@@ -328,7 +328,7 @@ var testViewEditController = function(COMPONENT, DataService, PropertyService,
            componentId : COMPONENT.NETWORK,\r
            callbackFunction : callbackFunction\r
        });\r
-    }\r
+    };\r
 \r
     /*\r
      * Show Details functions\r
@@ -341,7 +341,7 @@ var testViewEditController = function(COMPONENT, DataService, PropertyService,
            componentId : COMPONENT.SERVICE,\r
            callbackFunction : callbackFunction\r
        });\r
-    }\r
+    };\r
 \r
     $scope.showVnfDetails = function() {\r
 \r
@@ -353,7 +353,7 @@ var testViewEditController = function(COMPONENT, DataService, PropertyService,
            componentId : COMPONENT.VNF,\r
            callbackFunction : callbackFunction\r
        });\r
-    }\r
+    };\r
 \r
     $scope.showVfModuleDetails = function() {\r
 \r
@@ -365,7 +365,7 @@ var testViewEditController = function(COMPONENT, DataService, PropertyService,
            componentId : COMPONENT.VF_MODULE,\r
            callbackFunction : callbackFunction\r
        });\r
-    }\r
+    };\r
 \r
     $scope.showVolumeGroupDetails = function() {\r
 \r
@@ -376,7 +376,7 @@ var testViewEditController = function(COMPONENT, DataService, PropertyService,
            componentId : COMPONENT.VOLUME_GROUP,\r
            callbackFunction : callbackFunction\r
        });\r
-    }\r
+    };\r
 \r
     $scope.showNetworkDetails = function() {\r
 \r
@@ -387,8 +387,8 @@ var testViewEditController = function(COMPONENT, DataService, PropertyService,
            componentId : COMPONENT.NETWORK,\r
            callbackFunction : callbackFunction\r
        });\r
-    }\r
-}\r
+    };\r
+};\r
 \r
 app.controller("testViewEditController", [ "COMPONENT", "DataService",\r
        "PropertyService", "UtilityService", "$scope", "$timeout",\r