From 9a641d43ebe108ba4bf39a23a5903be2230401ec Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Mon, 27 Feb 2017 14:00:45 +0000 Subject: [PATCH] Remove cruft --- .../AuthenticationManagerTests.coffee | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/services/web/test/UnitTests/coffee/Authentication/AuthenticationManagerTests.coffee b/services/web/test/UnitTests/coffee/Authentication/AuthenticationManagerTests.coffee index 2db8370769..0ebf9f8112 100644 --- a/services/web/test/UnitTests/coffee/Authentication/AuthenticationManagerTests.coffee +++ b/services/web/test/UnitTests/coffee/Authentication/AuthenticationManagerTests.coffee @@ -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