File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,17 +20,17 @@ assert.throws(
2020 function ( ) {
2121 crypto . getDiffieHellman ( 'modp1' ) . setPrivateKey ( '' ) ;
2222 } ,
23- new RegExp ( / ^ T y p e E r r o r : c r y p t o \. g e t D i f f i e H e l l m a n \( \. \. \. \) \. / . source +
24- / s e t P r i v a t e K e y i s n o t a f u n c t i o n $ / . source ) ,
23+ new RegExp ( ' ^TypeError: crypto\\ .getDiffieHellman\\(\\.\\.\\.\\)\\.' +
24+ ' setPrivateKey is not a function$' ) ,
2525 'crypto.getDiffieHellman(\'modp1\').setPrivateKey(\'\') ' +
2626 'failed to throw the expected error.'
2727) ;
2828assert . throws (
2929 function ( ) {
3030 crypto . getDiffieHellman ( 'modp1' ) . setPublicKey ( '' ) ;
3131 } ,
32- new RegExp ( / ^ T y p e E r r o r : c r y p t o \. g e t D i f f i e H e l l m a n \( \. \. \. \) \. / . source +
33- / s e t P u b l i c K e y i s n o t a f u n c t i o n $ / . source ) ,
32+ new RegExp ( ' ^TypeError: crypto\\ .getDiffieHellman\\(\\.\\.\\.\\)\\.' +
33+ ' setPublicKey is not a function$' ) ,
3434 'crypto.getDiffieHellman(\'modp1\').setPublicKey(\'\') ' +
3535 'failed to throw the expected error.'
3636) ;
You can’t perform that action at this time.
0 commit comments