Skip to content

Commit

Permalink
[flutter_local_notifications] fixed unit tests for zonedScheduled method
Browse files Browse the repository at this point in the history
  • Loading branch information
MaikuB committed Apr 15, 2023
1 parent c1f97e4 commit 311684a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1955,6 +1955,7 @@ void main() {
'payload': '',
'timeZoneName': 'Australia/Sydney',
'scheduledDateTime': convertDateToISO8601String(scheduledDate),
'scheduledDateTimeISO8601': scheduledDate.toIso8601String(),
'platformSpecifics': <String, Object?>{
'scheduleMode': 'exactAllowWhileIdle',
'icon': null,
Expand Down Expand Up @@ -2049,6 +2050,7 @@ void main() {
'payload': '',
'timeZoneName': 'Australia/Sydney',
'scheduledDateTime': convertDateToISO8601String(scheduledDate),
'scheduledDateTimeISO8601': scheduledDate.toIso8601String(),
'matchDateTimeComponents': DateTimeComponents.time.index,
'platformSpecifics': <String, Object?>{
'scheduleMode': 'exactAllowWhileIdle',
Expand Down Expand Up @@ -2144,6 +2146,7 @@ void main() {
'payload': '',
'timeZoneName': 'Australia/Sydney',
'scheduledDateTime': convertDateToISO8601String(scheduledDate),
'scheduledDateTimeISO8601': scheduledDate.toIso8601String(),
'matchDateTimeComponents':
DateTimeComponents.dayOfWeekAndTime.index,
'platformSpecifics': <String, Object?>{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ void main() {
'uiLocalNotificationDateInterpretation':
UILocalNotificationDateInterpretation.absoluteTime.index,
'scheduledDateTime': convertDateToISO8601String(scheduledDate),
'scheduledDateTimeISO8601': scheduledDate.toIso8601String(),
'timeZoneName': 'Australia/Sydney',
'platformSpecifics': <String, Object?>{
'presentAlert': true,
Expand Down Expand Up @@ -441,6 +442,7 @@ void main() {
'uiLocalNotificationDateInterpretation':
UILocalNotificationDateInterpretation.absoluteTime.index,
'scheduledDateTime': convertDateToISO8601String(scheduledDate),
'scheduledDateTimeISO8601': scheduledDate.toIso8601String(),
'timeZoneName': 'Australia/Sydney',
'matchDateTimeComponents': DateTimeComponents.time.index,
'platformSpecifics': <String, Object?>{
Expand Down Expand Up @@ -509,6 +511,7 @@ void main() {
'uiLocalNotificationDateInterpretation':
UILocalNotificationDateInterpretation.absoluteTime.index,
'scheduledDateTime': convertDateToISO8601String(scheduledDate),
'scheduledDateTimeISO8601': scheduledDate.toIso8601String(),
'timeZoneName': 'Australia/Sydney',
'matchDateTimeComponents':
DateTimeComponents.dayOfWeekAndTime.index,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ void main() {
'body': 'notification body',
'payload': '',
'scheduledDateTime': convertDateToISO8601String(scheduledDate),
'scheduledDateTimeISO8601': scheduledDate.toIso8601String(),
'timeZoneName': 'Australia/Sydney',
'platformSpecifics': <String, Object?>{
'subtitle': null,
Expand Down Expand Up @@ -353,6 +354,7 @@ void main() {
'body': 'notification body',
'payload': '',
'scheduledDateTime': convertDateToISO8601String(scheduledDate),
'scheduledDateTimeISO8601': scheduledDate.toIso8601String(),
'timeZoneName': 'Australia/Sydney',
'matchDateTimeComponents': DateTimeComponents.time.index,
'platformSpecifics': <String, Object?>{
Expand Down Expand Up @@ -426,6 +428,7 @@ void main() {
'body': 'notification body',
'payload': '',
'scheduledDateTime': convertDateToISO8601String(scheduledDate),
'scheduledDateTimeISO8601': scheduledDate.toIso8601String(),
'timeZoneName': 'Australia/Sydney',
'matchDateTimeComponents':
DateTimeComponents.dayOfWeekAndTime.index,
Expand Down

0 comments on commit 311684a

Please sign in to comment.