mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-03 20:02:08 +00:00
Remove cruft
This commit is contained in:
parent
98d7dc6f88
commit
9a641d43eb
1 changed files with 0 additions and 13 deletions
|
@ -128,9 +128,6 @@ describe "AuthenticationManager", ->
|
|||
@AuthenticationManager.setUserPassword(@user_id, @password, @callback)
|
||||
|
||||
it "should update the user's password in the database", ->
|
||||
# { _id: 58b411efedd652642a1bb10c },
|
||||
# { '$set': { hashedPassword: 'asdkjfa;osiuvandf' },
|
||||
# '$unset': { password: true } }
|
||||
args = @db.users.update.lastCall.args
|
||||
expect(args[0]).to.deep.equal {_id: ObjectId(@user_id.toString())}
|
||||
expect(args[1]).to.deep.equal {
|
||||
|
@ -139,16 +136,6 @@ describe "AuthenticationManager", ->
|
|||
}
|
||||
$unset: password: true
|
||||
}
|
||||
# @db.users.update
|
||||
# .calledWith({
|
||||
# _id: ObjectId(@user_id.toString())
|
||||
# }, {
|
||||
# $set: {
|
||||
# "hashedPassword": @hashedPassword
|
||||
# }
|
||||
# $unset: password: true
|
||||
# })
|
||||
# .should.equal true
|
||||
|
||||
it "should hash the password", ->
|
||||
@bcrypt.genSalt
|
||||
|
|
Loading…
Reference in a new issue