test: add missing "return" in a promise-style test

Before this change, when the test failed, the rejected promise
was not reported back to mocha and triggered "unhandled promise
rejection" warning only.
This commit is contained in:
Miroslav Bajtoš 2018-02-02 14:25:52 +01:00
parent d23ff84587
commit 3723f107db
No known key found for this signature in database
GPG Key ID: 6F2304BA9361C7E3
1 changed files with 1 additions and 1 deletions

View File

@ -1407,7 +1407,7 @@ describe('User', function() {
});
it('changes the password - instance method', () => {
validCredentialsUser.changePassword(currentPassword, 'new password')
return validCredentialsUser.changePassword(currentPassword, 'new password')
.then(() => {
expect(arguments.length, 'changePassword promise resolution')
.to.equal(0);