Skip to content

Commit

Permalink
fix: unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
CristhianF7 committed Aug 16, 2023
1 parent aa1e21b commit be0b71d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/mock/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ export function mockSuccessResponse() {
const mock = new MockAdapter(githubApi);

mock.onGet('/user').reply(200, mockGithubUser);
mock.onGet('/user/orgs').reply(200, mockGithubUserOrganizations);
mock.onGet('/user/orgs?per_page=100').reply(200, mockGithubUserOrganizations);
}

export function mockFailedResponse() {
const mock = new MockAdapter(githubApi);

mock.onGet('/user').reply(403);
mock.onGet('/user/orgs').reply(403);
mock.onGet('/user/orgs?per_page=100').reply(403);
}

0 comments on commit be0b71d

Please sign in to comment.