File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,12 @@ test('toOriginUrl', () => {
66 window . location = new URL ( `${ origin } /` ) ;
77 expect ( toOriginUrl ( '/' ) ) . toEqual ( `${ origin } /` ) ;
88 expect ( toOriginUrl ( '/org/repo.git' ) ) . toEqual ( `${ origin } /org/repo.git` ) ;
9- expect ( toOriginUrl ( 'https://localhost/org/repo.git' ) ) . toEqual ( `${ origin } /org/repo.git` ) ;
10- expect ( toOriginUrl ( 'https://localhost:5000' ) ) . toEqual ( `${ origin } /` ) ;
11- expect ( toOriginUrl ( 'https://localhost:5000/org/repo.git' ) ) . toEqual ( `${ origin } /org/repo.git` ) ;
9+ expect ( toOriginUrl ( 'https://another.com' ) ) . toEqual ( `${ origin } /` ) ;
10+ expect ( toOriginUrl ( 'https://another.com/' ) ) . toEqual ( `${ origin } /` ) ;
11+ expect ( toOriginUrl ( 'https://another.com/org/repo.git' ) ) . toEqual ( `${ origin } /org/repo.git` ) ;
12+ expect ( toOriginUrl ( 'https://another.com:5000' ) ) . toEqual ( `${ origin } /` ) ;
13+ expect ( toOriginUrl ( 'https://another.com:5000/' ) ) . toEqual ( `${ origin } /` ) ;
14+ expect ( toOriginUrl ( 'https://another.com:5000/org/repo.git' ) ) . toEqual ( `${ origin } /org/repo.git` ) ;
1215 }
1316 window . location = oldLocation ;
1417} ) ;
You can’t perform that action at this time.
0 commit comments