Skip to content

Commit

Permalink
Update Workflow File
Browse files Browse the repository at this point in the history
- Update Test Case To Simulate File Change In Directory
  • Loading branch information
Jai2501 committed Nov 12, 2023
1 parent 8598e3d commit 60bb821
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_and_test_master_user_service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
run: docker-compose build --no-cache user-service user-service-database

- name: Run User Service and User Service Database with Docker Compose
run: docker-compose up user-service user-service-database -d
run: docker-compose up -d user-service user-service-database

- name: Run Test Cases in User Service
run: docker exec ay2324s1-course-assessment-g16-user-service-1 npm test
Expand Down
4 changes: 2 additions & 2 deletions UserService/UnitTests/UserDatabaseController.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const sum = require("./sum");
const sum1 = require("./sum");

test("adds 1 + 2 to equal 3", () => {
expect(sum(1, 2)).toBe(3);
expect(sum1(1, 2)).toBe(3);
});
4 changes: 2 additions & 2 deletions UserService/UnitTests/sum.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function sum(a, b) {
function sum1(a, b) {
return a + b;
}

module.exports = sum;
module.exports = sum1;

0 comments on commit 60bb821

Please sign in to comment.