mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-17 04:01:42 +00:00
updated tpds background tests
This commit is contained in:
parent
b36ced3058
commit
2288591bae
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ describe 'third party data store', ->
|
|||
@poller._sendToTpds = sinon.stub().callsArgWith(1, null)
|
||||
@poller._markPollHappened = sinon.stub()
|
||||
@poller.pollUsersWithDropbox (err)=>
|
||||
@userModel.find.calledWith({"dropbox.access_token.oauth_token_secret":{"$exists":true}}, "_id").should.equal true
|
||||
@userModel.find.calledWith({"dropbox.access_token.oauth_token_secret":{"$exists":true}, "features.dropbox":true}, "_id").should.equal true
|
||||
@poller._sendToTpds.calledWith([users[0]._id, users[1]._id, users[2]._id,]).should.equal true
|
||||
@poller._markPollHappened.called.should.equal true
|
||||
done()
|
||||
|
|
Loading…
Reference in a new issue