mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-21 07:46:06 +08:00
fix(specs): Fix DraftStore and SendManyDraftsTask specs
This commit is contained in:
parent
b0200cc04f
commit
b1a8efc50a
|
@ -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);
|
||||
|
|
2
src/pro
2
src/pro
|
@ -1 +1 @@
|
|||
Subproject commit da52f53a0d139f5658a42d68a5aed62d0a77b73f
|
||||
Subproject commit c8476c522c0cd015e3770a7ed6f23ada8ee4a6c1
|
Loading…
Reference in a new issue