mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
updated tpds background tests
This commit is contained in:
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user