Skip to content

Commit

Permalink
test: assert from .then not callback
Browse files Browse the repository at this point in the history
PR #6
  • Loading branch information
fl0w authored and haoxin committed Apr 23, 2016
1 parent 7026e17 commit 85c035f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('bcrypt', function () {
})

it('(password, salt)', function () {
return bcrypt.hash('password', 10, function (hash) {
return bcrypt.hash('password', 10).then(function (hash) {
assert(typeof hash === 'string')
})
})
Expand Down

0 comments on commit 85c035f

Please sign in to comment.