Skip to content

Commit

Permalink
fix: frontend tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Pehesi97 committed Oct 23, 2023
1 parent eef1ba3 commit 52a88b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/docker/Dockerfile.frontendjs.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ WORKDIR /app

COPY package*.json tsconfig*.json ./

RUN npm {{ .NodeInstallCommand }}
RUN {{ .NodeInstallCommand }}

COPY . .

Expand Down
2 changes: 1 addition & 1 deletion src/services/project/project_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 52a88b8

Please sign in to comment.