File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ describe('api', () => {
68
68
configs : generateConfigs ( ) ,
69
69
} ) ;
70
70
const url = `${ MY_ACCOUNT_DOMAINS . production } /oauth/authorize?${ query } ` ;
71
- expect ( open ) . toBeCalledWith ( url , '_self' ) ;
71
+ expect ( open ) . toBeCalledWith ( url , '_self' , 'noreferrer' ) ;
72
72
} ) ;
73
73
74
74
test ( 'with options' , ( ) => {
@@ -101,7 +101,7 @@ describe('api', () => {
101
101
configs : generateConfigs ( ) ,
102
102
} ) ;
103
103
const url = `${ MY_ACCOUNT_DOMAINS . production } /oauth/authorize?${ query } ` ;
104
- expect ( open ) . toBeCalledWith ( url , '_self' ) ;
104
+ expect ( open ) . toBeCalledWith ( url , '_self' , 'noreferrer' ) ;
105
105
} ) ;
106
106
107
107
test ( 'without window' , ( ) => {
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ export default function authorize(
70
70
71
71
window . open (
72
72
`${ MY_ACCOUNT_DOMAINS [ mode ] } /oauth/authorize?${ queryString } ` ,
73
- getIsTabValue ( isNewTab )
73
+ getIsTabValue ( isNewTab ) ,
74
+ 'noreferrer'
74
75
) ;
75
76
}
You can’t perform that action at this time.
0 commit comments