fix tests, whoops

This commit is contained in:
Henry Oswald 2014-05-15 18:26:00 +01:00
parent e1b3f3542c
commit 133c4759f8
3 changed files with 4 additions and 3 deletions

View file

@ -93,7 +93,6 @@ module.exports =
buildEmail: (templateName, opts)->
template = templates[templateName]
console.log opts
opts.body = template.compiledTemplate(opts)
return {
subject : template.subject(opts)

View file

@ -25,6 +25,6 @@ module.exports =
TokenGenerator.getUserIdFromToken token, (err, user_id)->
if err then return callback(err)
if !user_id?
logger.err email:email, "token for password reset did not find user_id"
logger.err user_id:user_id, "token for password reset did not find user_id"
return callback("no user found")
AuthenticationManager.setUserPassword user_id, password, callback

View file

@ -27,7 +27,9 @@ describe "PasswordResetHandler", ->
"../Email/EmailHandler":@EmailHandler
"../Authentication/AuthenticationManager":@AuthenticationManager
"settings-sharelatex": @settings
"logger-sharelatex": log:->
"logger-sharelatex":
log:->
err:->
@token = "12312321i"
@user_id = "user_id_here"
@user =