File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -112,15 +112,6 @@ testCipher2(Buffer.from('0123456789abcdef'));
112112 'TypedArray, or DataView. Received type object'
113113 } ) ;
114114
115- common . expectsError (
116- ( ) => crypto . createCipher ( 'aes-256-cbc' , 'secret' ) . setAuthTag ( null ) ,
117- {
118- code : 'ERR_INVALID_ARG_TYPE' ,
119- type : TypeError ,
120- message : 'The "buffer" argument must be one of type Buffer, ' +
121- 'TypedArray, or DataView. Received type object'
122- } ) ;
123-
124115 common . expectsError (
125116 ( ) => crypto . createCipher ( 'aes-256-cbc' , 'secret' ) . setAAD ( null ) ,
126117 {
@@ -146,6 +137,15 @@ testCipher2(Buffer.from('0123456789abcdef'));
146137 'Received type object'
147138 } ) ;
148139
140+ common . expectsError (
141+ ( ) => crypto . createDecipher ( 'aes-256-cbc' , 'secret' ) . setAuthTag ( null ) ,
142+ {
143+ code : 'ERR_INVALID_ARG_TYPE' ,
144+ type : TypeError ,
145+ message : 'The "buffer" argument must be one of type Buffer, ' +
146+ 'TypedArray, or DataView. Received type object'
147+ } ) ;
148+
149149 common . expectsError (
150150 ( ) => crypto . createDecipher ( 'aes-256-cbc' , null ) ,
151151 {
You can’t perform that action at this time.
0 commit comments