mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-26 18:51:50 +02:00
added some debug lines
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user