Skip to content

Commit

Permalink
Add team member amendments
Browse files Browse the repository at this point in the history
  • Loading branch information
mel-am committed Feb 6, 2024
1 parent e64ec16 commit a040e0e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/integration/routes/add-team-member.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('add-team endpoint integration tests', () => {
expect(mockedAuth).toHaveBeenCalledTimes(1);
});

test('Should log the Team Name, Team Member GitHub handle on POST request.', async () => {
test('Should log the Team Name and Team Member GitHub handle on POST request.', async () => {
const res = await request(app).post(config.ADD_TEAM_MEMBER_URL).send(MOCK_POST_ADD_TEAM_MEMBER);

const mockLog = log.info as jest.Mock;
Expand Down
2 changes: 1 addition & 1 deletion test/mock/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const MOCK_POST_ADD_TEAM = { team_name: 'team1', team_maintainer_github_h
export const MOCK_POST_REMOVE_MEMBER = { github_handle: 'example', description: 'description' };
export const MOCK_POST_TEAM_REQUEST = { team_name: 'team1' };

export const MOCK_POST_ADD_TEAM_MEMBER = { team_name: 'team1', team_maintainer_github_handle: 'bob' };
export const MOCK_POST_ADD_TEAM_MEMBER = { team_name: 'team1', team_member_github_handle: 'joe' };

export const MOCK_CORS_VALUE = {
origin: [config.CDN_HOST, config.BASE_URL],
Expand Down
4 changes: 2 additions & 2 deletions test/mock/text.mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export const MOCK_POST_REMOVE_MEMBER_RESPONSE = 'Github Handle: example';
export const MOCK_GET_TEAM_REQUEST_RESPONSE = 'Additional Team Request';
export const MOCK_POST_TEAM_REQUEST_RESPONSE = 'Team Name: team1';

export const MOCK_GET_ADD_TEAM_MEMBER_RESPONSE = 'Add a GitHub Team Member';
export const MOCK_POST_ADD_TEAM_MEMBER_RESPONSE = 'Team Name: team1, Team Member GitHub Handle: bob';
export const MOCK_GET_ADD_TEAM_MEMBER_RESPONSE = 'Add a GitHub Member to a team';
export const MOCK_POST_ADD_TEAM_MEMBER_RESPONSE = 'Team Name: team1, Team Member GitHub Handle: joe';

export const MOCK_NOT_FOUND_RESPONSE = 'Page not found';
export const MOCK_SERVICE_UNAVAILABLE = 'Sorry, there is a problem with the service';
Expand Down
2 changes: 1 addition & 1 deletion test/unit/controller/add-team-member.controller.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ describe('add-team-member controller test suites', () => {

});
});
});
});

0 comments on commit a040e0e

Please sign in to comment.