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', () => {
6
6
window . location = new URL ( `${ origin } /` ) ;
7
7
expect ( toOriginUrl ( '/' ) ) . toEqual ( `${ origin } /` ) ;
8
8
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` ) ;
12
15
}
13
16
window . location = oldLocation ;
14
17
} ) ;
You can’t perform that action at this time.
0 commit comments