File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,17 +20,17 @@ assert.throws(
20
20
function ( ) {
21
21
crypto . getDiffieHellman ( 'modp1' ) . setPrivateKey ( '' ) ;
22
22
} ,
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$' ) ,
25
25
'crypto.getDiffieHellman(\'modp1\').setPrivateKey(\'\') ' +
26
26
'failed to throw the expected error.'
27
27
) ;
28
28
assert . throws (
29
29
function ( ) {
30
30
crypto . getDiffieHellman ( 'modp1' ) . setPublicKey ( '' ) ;
31
31
} ,
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$' ) ,
34
34
'crypto.getDiffieHellman(\'modp1\').setPublicKey(\'\') ' +
35
35
'failed to throw the expected error.'
36
36
) ;
You can’t perform that action at this time.
0 commit comments