mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-27 19:07:15 +08:00
fix(specs): Properly spy on streaming connection
- Prevent error logs and actually trying to start delta streaming connections
This commit is contained in:
parent
796af843a0
commit
5f52a9a47b
1 changed files with 1 additions and 1 deletions
|
@ -43,11 +43,11 @@ describe "NylasSyncWorker", ->
|
|||
return throw new Error("Not stubbed! #{key}")
|
||||
|
||||
|
||||
spyOn(DeltaStreamingConnection.prototype, 'start')
|
||||
@account = new Account(clientId: TEST_ACCOUNT_CLIENT_ID, serverId: TEST_ACCOUNT_ID, organizationUnit: 'label')
|
||||
@worker = new NylasSyncWorker(@api, @account)
|
||||
@worker._metadata = {"a": [{"id":"b"}]}
|
||||
@connection = @worker.connection()
|
||||
spyOn(@connection, 'start')
|
||||
advanceClock()
|
||||
|
||||
it "should reset `busy` to false when reading state from disk", ->
|
||||
|
|
Loading…
Reference in a new issue