File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,9 @@ describe("openSaucedUserEndpoint", () => {
14
14
expect ( data . login ) . toBe ( "bdougie" ) ;
15
15
} )
16
16
17
- it ( "should return a 404 error for a user that does not exist" , async ( ) => {
18
- const response = await fetch ( `${ OPEN_SAUCED_USERS_ENDPOINT } /1 ` ) ;
19
- expect ( response . status ) . toBe ( 404 ) ;
17
+ it ( "should return a bad request for a user that does not exist" , async ( ) => {
18
+ const response = await fetch ( `${ OPEN_SAUCED_USERS_ENDPOINT } /foolala ` ) ;
19
+ expect ( response . status ) . toBe ( 400 ) ;
20
20
} )
21
21
} )
22
22
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ test('getPullRequestAPIURL', async () => {
98
98
expect ( await getPullRequestAPIURL ( 'https://github.com/open-sauced/ai/pull/164' ) ) . toBe ( 'https://api.github.com/repos/open-sauced/ai/pulls/164' )
99
99
expect ( await getPullRequestAPIURL ( 'https://github.com/open-sauced/ai/pull/163' ) ) . toBe ( 'https://api.github.com/repos/open-sauced/ai/pulls/163' )
100
100
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' )
101
- expect ( await getPullRequestAPIURL ( 'https://github.com/tailwindlabs/tailwindcss/compare/some-branch' ) ) . toBe ( 'https://api.github.com/repos/tailwindlabs/tailwindcss/compare/master ...some-branch' )
101
+ expect ( await getPullRequestAPIURL ( 'https://github.com/tailwindlabs/tailwindcss/compare/some-branch' ) ) . toBe ( 'https://api.github.com/repos/tailwindlabs/tailwindcss/compare/next ...some-branch' )
102
102
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' )
103
103
expect ( await getPullRequestAPIURL ( 'https://github.com/tailwindlabs/tailwindcss/compare/master...some-branch' ) ) . toBe ( 'https://api.github.com/repos/tailwindlabs/tailwindcss/compare/master...some-branch' )
104
104
You can’t perform that action at this time.
0 commit comments