mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-25 02:21:23 +00:00
added some debug lines
This commit is contained in:
parent
49fecc9ef4
commit
1c3edcd627
2 changed files with 2 additions and 0 deletions
|
@ -70,6 +70,7 @@ describe 'ProjectLocator', ->
|
|||
|
||||
it 'should give error if element could not be found', (done)->
|
||||
@locator.findElement {project_id:project._id, element_id:"ddsd432nj42", type:"docs"}, (err, foundElement, path, parentFolder)->
|
||||
console.log err
|
||||
err.should.deep.equal new Errors.NotFoundError("entity not found")
|
||||
done()
|
||||
|
||||
|
|
|
@ -96,6 +96,7 @@ describe "UserRegistrationHandler", ->
|
|||
it "should return email registered in the error if there is a non holdingAccount there", (done)->
|
||||
@User.findOne.callsArgWith(1, null, @user = {holdingAccount:false})
|
||||
@handler.registerNewUser @passingRequest, (err, user)=>
|
||||
console.log err, user
|
||||
err.should.deep.equal new Error("EmailAlreadyRegistered")
|
||||
user.should.deep.equal @user
|
||||
done()
|
||||
|
|
Loading…
Reference in a new issue