From 52a88b82398d66a4f6a79dac3f782b3bd59f1884 Mon Sep 17 00:00:00 2001 From: Pehesi97 Date: Mon, 23 Oct 2023 09:06:59 -0300 Subject: [PATCH] fix: frontend tests --- assets/docker/Dockerfile.frontendjs.tmpl | 2 +- src/services/project/project_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/docker/Dockerfile.frontendjs.tmpl b/assets/docker/Dockerfile.frontendjs.tmpl index 48843c0..92b3975 100644 --- a/assets/docker/Dockerfile.frontendjs.tmpl +++ b/assets/docker/Dockerfile.frontendjs.tmpl @@ -4,7 +4,7 @@ WORKDIR /app COPY package*.json tsconfig*.json ./ -RUN npm {{ .NodeInstallCommand }} +RUN {{ .NodeInstallCommand }} COPY . . diff --git a/src/services/project/project_test.go b/src/services/project/project_test.go index 80ed65a..8572579 100644 --- a/src/services/project/project_test.go +++ b/src/services/project/project_test.go @@ -140,7 +140,7 @@ func TestNodeInstallCommand(t *testing.T) { Resources: os.DirFS(root), } - if project_type == NodeProject { + if project_type == NodeProject || project_type == FrontendJsProject { expected := "npm i" installCommand := proj.NodeInstallCommand() if installCommand != expected {