Merge "minor correction in control-panel docker-compose file"
authorPatrik Buhr <patrik.buhr@est.tech>
Tue, 8 Jun 2021 04:50:01 +0000 (04:50 +0000)
committerGerrit Code Review <gerrit@o-ran-sc.org>
Tue, 8 Jun 2021 04:50:01 +0000 (04:50 +0000)
webapp-frontend/Dockerfile
webapp-frontend/package.json
webapp-frontend/src/app/policy/policy-instance/policy-instance.component.spec.ts

index 30d5c2c..c4a07d2 100644 (file)
@@ -28,7 +28,7 @@ RUN export CHROME_BIN=/usr/bin/chromium-browser
 ENV CHROME_BIN /usr/bin/chromium-browser
 RUN ./ng test --browsers ChromeHeadless --code-coverage=true --watch=false
 
-RUN npm run-script build
+RUN npm run-script build:prod
 
 ### STAGE 2: Run App ###
 FROM nginx:alpine
index 75f7ced..6703911 100644 (file)
@@ -5,7 +5,8 @@
     "ng": "ng",
     "start": "ng serve --proxy-config proxy.conf.json",
     "start:mock": "ng serve --configuration=mock",
-    "build": "ng build",
+    "build": "ng build --output-hashing all",
+    "build:prod": "ng build --configuration production --build-optimizer --vendor-chunk",
     "test": "ng test --watch=true",
     "lint": "ng lint",
     "e2e": "ng e2e",
index 4a50046..7060cc9 100644 (file)
@@ -517,7 +517,7 @@ describe("PolicyInstanceComponent", () => {
     });
 
     describe("#truncate data", () => {
-      fit("should verify that data is correctly truncated when needed", async () => {
+      it("should verify that data is correctly truncated when needed", async () => {
         policyServiceSpy.getPolicyInstancesByType.and.returnValue(
           of(policyInstances)
         );