Merge pull request #3787 from strongloop/fix/dangling-promise-in-test

test: add missing "return" in a promise-style test
This commit is contained in:
Miroslav Bajtoš 2018-02-09 08:20:10 +01:00 committed by GitHub
commit 66497ead70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);