You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
message: 'The "iv" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined',
122
-
stack: /atCipheriv\.createCipherWithIV/,
123
119
})
124
120
})
125
121
126
122
it('method `encrypt` should thrown Error when length of the `iv` is invalid',()=>{
127
123
should(()=>{
128
124
aes.encrypt('','')
129
125
}).throw(Error,{
130
-
message: 'Invalid IV length',
131
-
stack: /atCipheriv\.createCipherBase/,
132
126
})
133
127
})
134
128
@@ -149,8 +143,6 @@ describe('lib/aes', () => {
149
143
aes.encrypt(mockupIv,mockupKey)
150
144
}).throw(TypeError,{
151
145
code: 'ERR_INVALID_ARG_TYPE',
152
-
message: 'The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined',
153
-
stack: /atCipheriv\.update/,
154
146
})
155
147
})
156
148
@@ -161,8 +153,6 @@ describe('lib/aes', () => {
161
153
aes.encrypt(mockupIv,mockupKey,'',1)
162
154
}).throw(TypeError,{
163
155
code: 'ERR_INVALID_ARG_TYPE',
164
-
message: 'The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received type number (1)',
165
-
stack: /atFunction\.from\(buffer\.js/,
166
156
})
167
157
})
168
158
@@ -194,8 +184,6 @@ describe('lib/aes', () => {
194
184
aes.decrypt()
195
185
}).throw(TypeError,{
196
186
code: 'ERR_INVALID_ARG_TYPE',
197
-
message: 'The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined',
198
-
stack: /atFunction\.from\(buffer\.js/,
199
187
})
200
188
})
201
189
@@ -204,8 +192,6 @@ describe('lib/aes', () => {
204
192
aes.decrypt(undefined,undefined,'')
205
193
}).throw(TypeError,{
206
194
code: 'ERR_INVALID_ARG_TYPE',
207
-
message: 'The "key" argument must be of type string or an instance of Buffer, TypedArray, DataView, or KeyObject. Received undefined',
message: 'The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received type number (1)',
0 commit comments