Fix comically long lines.

This commit is contained in:
Shane Kilkelly 2015-12-31 09:22:35 +00:00
parent 877ea1d376
commit d9ca9fc06d
2 changed files with 7 additions and 2 deletions

View file

@ -13,7 +13,11 @@ module.exports = ReferencesSearchController =
if !doc_id
logger.log project_id: project_id, "no fileUrl supplied"
return res.send 400
ProjectLocator.findElement {project_id: project_id, element_id: doc_id, type: 'doc'}, (err, doc) ->
ProjectLocator.findElement {
project_id: project_id,
element_id: doc_id,
type: 'doc'
}, (err, doc) ->
if err?
logger.err {err, project_id, doc_id}, "error finding doc to index"
return res.send 500

View file

@ -57,7 +57,8 @@ describe "ReferencesSearchController", ->
@res.send = (status) =>
@ReferencesSearchHandler.indexFile.calledOnce.should.equal true
expected_url = "http://some.url/project/2222/doc/3333"
@ReferencesSearchHandler.indexFile.calledWith(@project_id, expected_url).should.equal true
@ReferencesSearchHandler.indexFile
.calledWith(@project_id, expected_url).should.equal true
done()
@controller.indexFile(@req, @res)