diff --git a/test/api/openSaucedApi.test.ts b/test/api/openSaucedApi.test.ts index 5709f537..8b902e3a 100644 --- a/test/api/openSaucedApi.test.ts +++ b/test/api/openSaucedApi.test.ts @@ -14,9 +14,9 @@ describe("openSaucedUserEndpoint", () => { expect(data.login).toBe("bdougie"); }) - it("should return a 404 error for a user that does not exist", async () => { - const response = await fetch(`${OPEN_SAUCED_USERS_ENDPOINT}/1`); - expect(response.status).toBe(404); + it("should return a bad request for a user that does not exist", async () => { + const response = await fetch(`${OPEN_SAUCED_USERS_ENDPOINT}/foolala`); + expect(response.status).toBe(400); }) }) diff --git a/test/utils/urlMatcher.test.ts b/test/utils/urlMatcher.test.ts index 06076875..966de389 100644 --- a/test/utils/urlMatcher.test.ts +++ b/test/utils/urlMatcher.test.ts @@ -98,7 +98,7 @@ test('getPullRequestAPIURL', async () => { expect(await getPullRequestAPIURL('https://github.com/open-sauced/ai/pull/164')).toBe('https://api.github.com/repos/open-sauced/ai/pulls/164') expect(await getPullRequestAPIURL('https://github.com/open-sauced/ai/pull/163')).toBe('https://api.github.com/repos/open-sauced/ai/pulls/163') expect(await getPullRequestAPIURL('https://github.com/open-sauced/ai/compare/some-branch')).toBe('https://api.github.com/repos/open-sauced/ai/compare/beta...some-branch') - expect(await getPullRequestAPIURL('https://github.com/tailwindlabs/tailwindcss/compare/some-branch')).toBe('https://api.github.com/repos/tailwindlabs/tailwindcss/compare/master...some-branch') + expect(await getPullRequestAPIURL('https://github.com/tailwindlabs/tailwindcss/compare/some-branch')).toBe('https://api.github.com/repos/tailwindlabs/tailwindcss/compare/next...some-branch') expect(await getPullRequestAPIURL('https://github.com/open-sauced/ai/compare/beta...some-branch')).toBe('https://api.github.com/repos/open-sauced/ai/compare/beta...some-branch') expect(await getPullRequestAPIURL('https://github.com/tailwindlabs/tailwindcss/compare/master...some-branch')).toBe('https://api.github.com/repos/tailwindlabs/tailwindcss/compare/master...some-branch')