mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Add test.
This commit is contained in:
parent
0b28e7e964
commit
6cc18cd2fb
1 changed files with 5 additions and 0 deletions
|
@ -71,6 +71,11 @@ describe 'ReferencesSearchHandler', ->
|
|||
it 'should not produce an error', (done) ->
|
||||
@handler.indexFile @project_id, @file_id, (err) =>
|
||||
expect(err).to.equal null
|
||||
@request.post.calledOnce.should.equal true
|
||||
options = @request.post.firstCall.args[0]
|
||||
options.json.fullIndex.should.equal false
|
||||
options.json.referencesUrl.should.not.be.undefined
|
||||
options.url.should.not.be.undefined
|
||||
done()
|
||||
|
||||
describe 'when index operation fails', ->
|
||||
|
|
Loading…
Reference in a new issue