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
.then((res)=>expect(res.body.error).toBe('User not found.'));
186
+
});
187
+
188
+
it('responds with status 400 and json string the provided password is the same as the current password (New password must be different from the current password.)',()=>{
189
+
returnrequest(app)
190
+
.post('/updatePassword')
191
+
.send({
192
+
username: testUsername,
193
+
password: testPassword
194
+
})
195
+
.set('Accept','application/json')
196
+
.expect('Content-Type',/json/)
197
+
.expect(400)
198
+
.then((res)=>
199
+
expect(res.body.error).toBe(
200
+
'New password must be different from the current password.'
0 commit comments