fix(specs): Fix DraftStore and SendManyDraftsTask specs

This commit is contained in:
Juan Tejada 2016-06-10 11:32:38 -07:00
parent b0200cc04f
commit b1a8efc50a
2 changed files with 4 additions and 4 deletions

View file

@ -422,7 +422,7 @@ describe('DraftStore', function draftStore() {
spyOn(Actions, "composePopoutDraft");
DraftStore._draftsSending[this.draft.clientId] = true;
Actions.sendDraftFailed({threadId: 't1', errorMessage: "boohoo", draftClientId: this.draft.clientId});
advanceClock(200);
advanceClock(400);
expect(DraftStore.isSendingDraft(this.draft.clientId)).toBe(false);
expect(DraftStore.trigger).toHaveBeenCalledWith(this.draft.clientId);
expect(remote.dialog.showMessageBox).toHaveBeenCalled();
@ -437,7 +437,7 @@ describe('DraftStore', function draftStore() {
spyOn(Actions, "composePopoutDraft");
DraftStore._draftsSending[this.draft.clientId] = true;
Actions.sendDraftFailed({threadId: 't2', errorMessage: "boohoo", draftClientId: this.draft.clientId});
advanceClock(200);
advanceClock(400);
expect(Actions.composePopoutDraft).toHaveBeenCalled();
const call = Actions.composePopoutDraft.calls[0];
expect(call.args[0]).toBe(this.draft.clientId);
@ -450,7 +450,7 @@ describe('DraftStore', function draftStore() {
DraftStore._draftsSending[this.draft.clientId] = true;
spyOn(FocusedContentStore, "focused").andReturn(null);
Actions.sendDraftFailed({errorMessage: "boohoo", draftClientId: this.draft.clientId});
advanceClock(200);
advanceClock(400);
expect(Actions.composePopoutDraft).toHaveBeenCalled();
const call = Actions.composePopoutDraft.calls[0];
expect(call.args[0]).toBe(this.draft.clientId);

@ -1 +1 @@
Subproject commit da52f53a0d139f5658a42d68a5aed62d0a77b73f
Subproject commit c8476c522c0cd015e3770a7ed6f23ada8ee4a6c1