Skip to content

Commit 6765f66

Browse files
notif test: Clean up TestPlatformDispatcher.defaultRouteNameTestValue
1 parent 0417c87 commit 6765f66

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

test/notifications/display_test.dart

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,11 +1112,12 @@ void main() {
11121112
realmUrl: data.realmUrl,
11131113
userId: data.userId,
11141114
narrow: switch (data.recipient) {
1115-
FcmMessageChannelRecipient(:var streamId, :var topic) =>
1116-
TopicNarrow(streamId, topic),
1117-
FcmMessageDmRecipient(:var allRecipientIds) =>
1118-
DmNarrow(allRecipientIds: allRecipientIds, selfUserId: data.userId),
1119-
}).buildUrl();
1115+
FcmMessageChannelRecipient(:var streamId, :var topic) =>
1116+
TopicNarrow(streamId, topic),
1117+
FcmMessageDmRecipient(:var allRecipientIds) =>
1118+
DmNarrow(allRecipientIds: allRecipientIds, selfUserId: data.userId),
1119+
}).buildUrl();
1120+
addTearDown(tester.binding.platformDispatcher.clearDefaultRouteNameTestValue);
11201121
tester.binding.platformDispatcher.defaultRouteNameTestValue = intentDataUrl.toString();
11211122

11221123
// Now start the app.

0 commit comments

Comments
 (0)