TF-3699 Thread Detail Next previous actions (#3843)
This commit is contained in:
+12
-1
@@ -31,10 +31,14 @@ void main() {
|
||||
};
|
||||
when(threadDetailController.emailIdsPresentation)
|
||||
.thenReturn(initialEmailIdsPresentation.obs);
|
||||
when(threadDetailController.mailboxDashBoardController)
|
||||
.thenReturn(mailboxDashBoardController);
|
||||
when(mailboxDashBoardController.selectedEmail)
|
||||
.thenReturn(Rxn(PresentationEmail(id: EmailId(Id('1')))));
|
||||
|
||||
// act
|
||||
threadDetailController.handleGetEmailIdsByThreadIdSuccess(
|
||||
GetThreadByIdSuccess([]),
|
||||
GetThreadByIdSuccess([], threadId: null),
|
||||
);
|
||||
|
||||
// assert
|
||||
@@ -58,6 +62,10 @@ void main() {
|
||||
};
|
||||
when(threadDetailController.emailIdsPresentation)
|
||||
.thenReturn(initialEmailIdsPresentation.obs);
|
||||
when(threadDetailController.mailboxDashBoardController)
|
||||
.thenReturn(mailboxDashBoardController);
|
||||
when(mailboxDashBoardController.selectedEmail)
|
||||
.thenReturn(Rxn(PresentationEmail(id: EmailId(Id('1')))));
|
||||
|
||||
// act
|
||||
threadDetailController.handleGetEmailIdsByThreadIdSuccess(
|
||||
@@ -67,6 +75,7 @@ void main() {
|
||||
EmailId(Id('3')),
|
||||
EmailId(Id('4')),
|
||||
],
|
||||
threadId: null,
|
||||
updateCurrentThreadDetail: true,
|
||||
),
|
||||
);
|
||||
@@ -113,6 +122,7 @@ void main() {
|
||||
EmailId(Id('3')),
|
||||
EmailId(Id('4')),
|
||||
],
|
||||
threadId: null,
|
||||
updateCurrentThreadDetail: false,
|
||||
),
|
||||
);
|
||||
@@ -156,6 +166,7 @@ void main() {
|
||||
EmailId(Id('3')),
|
||||
EmailId(Id('4')),
|
||||
],
|
||||
threadId: null,
|
||||
updateCurrentThreadDetail: false,
|
||||
),
|
||||
);
|
||||
|
||||
+1
-1
@@ -69,7 +69,7 @@ void main() {
|
||||
|
||||
// Act
|
||||
threadDetailController.initializeThreadDetailEmails(
|
||||
GetThreadByIdSuccess(emailIds),
|
||||
GetThreadByIdSuccess(emailIds, threadId: null),
|
||||
);
|
||||
|
||||
// Assert
|
||||
|
||||
+1
-1
@@ -85,7 +85,7 @@ void main() {
|
||||
expect(
|
||||
streamsConsumed,
|
||||
emitsInOrder([
|
||||
Right(PreloadEmailIdsInThreadSuccess([selectedEmail.id!])),
|
||||
Right(PreloadEmailIdsInThreadSuccess([selectedEmail.id!], threadId: ThreadId(Id('1')))),
|
||||
Right(PreloadEmailsByIdsSuccess([selectedEmail])),
|
||||
]),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user