Skip to content

Commit

Permalink
updates based on review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
agordon-vivid committed Dec 6, 2024
1 parent c9a0110 commit 68f8216
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Change directory to Angular app
run: cd client/wfprev-war/src/main/angular

# Use the NPMRC secret to set up npm authenticationq
# Use the NPMRC secret to set up npm authentication
- name: Add .npmrc file
run: echo -e $NPMRC > ~/.npmrc

Expand Down
8 changes: 4 additions & 4 deletions client/wfprev-war/src/main/angular/.github/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v4

Expand All @@ -21,8 +21,8 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- run: npm install --legacy-peer-deps
- run: npm install

- run: npm run test -- --watch=false --code-coverage

# Ensure coverage meets the required threshold
Expand All @@ -33,4 +33,4 @@ jobs:
else
echo "Code coverage is less than 80%!";
exit 1;
fi
fi
Original file line number Diff line number Diff line change
Expand Up @@ -252,13 +252,13 @@ void testUpdateProjectBoundary_BadRequest() throws Exception {
String json = mapper.writeValueAsString(project);

// Test update
ResultActions resuult = mockMvc.perform(put("/projectBoundaries/{id}", "unmatched-id")
ResultActions result = mockMvc.perform(put("/projectBoundaries/{id}", "unmatched-id")
.content(json)
.contentType(MediaType.APPLICATION_JSON)
.header("Authorization", "Bearer admin-token")
.header("If-Match", "\"1\""))
.andExpect(status().isBadRequest());
assertEquals(400, resuult.andReturn().getResponse().getStatus());
assertEquals(400, result.andReturn().getResponse().getStatus());
}

@Test
Expand Down

0 comments on commit 68f8216

Please sign in to comment.