forked from eatvio/eatvio_app
feat(tests): fixed notifications tests
This commit is contained in:
@@ -50,6 +50,8 @@ void main() {
|
||||
type: NotificationType.chosenPlanStartedToClientNotification,
|
||||
planName: 'Test Plan',
|
||||
planId: 1,
|
||||
consultantName: '',
|
||||
peerProfileUrl: '',
|
||||
isRead: false,
|
||||
createdAt: DateTime.now(),
|
||||
),
|
||||
@@ -89,6 +91,8 @@ void main() {
|
||||
type: NotificationType.chosenPlanStartedToClientNotification,
|
||||
planName: 'Plan 1',
|
||||
planId: 1,
|
||||
consultantName: '',
|
||||
peerProfileUrl: '',
|
||||
isRead: false,
|
||||
createdAt: DateTime.now(),
|
||||
),
|
||||
@@ -99,6 +103,8 @@ void main() {
|
||||
type: NotificationType.chosenPlanStartedToClientNotification,
|
||||
planName: 'Plan 2',
|
||||
planId: 2,
|
||||
consultantName: '',
|
||||
peerProfileUrl: '',
|
||||
isRead: false,
|
||||
createdAt: DateTime.now(),
|
||||
),
|
||||
@@ -143,6 +149,8 @@ void main() {
|
||||
type: NotificationType.chosenPlanStartedToClientNotification,
|
||||
planName: 'Plan 1',
|
||||
planId: 1,
|
||||
consultantName: '',
|
||||
peerProfileUrl: '',
|
||||
isRead: false,
|
||||
createdAt: DateTime.now(),
|
||||
),
|
||||
@@ -168,6 +176,8 @@ void main() {
|
||||
type: NotificationType.chosenPlanStartedToClientNotification,
|
||||
planName: 'Plan 1',
|
||||
planId: 1,
|
||||
consultantName: '',
|
||||
peerProfileUrl: '',
|
||||
isRead: false,
|
||||
createdAt: DateTime.now(),
|
||||
),
|
||||
@@ -201,6 +211,8 @@ void main() {
|
||||
type: NotificationType.chosenPlanStartedToClientNotification,
|
||||
planName: 'Plan 1',
|
||||
planId: 1,
|
||||
consultantName: '',
|
||||
peerProfileUrl: '',
|
||||
isRead: false,
|
||||
createdAt: DateTime.now(),
|
||||
),
|
||||
@@ -231,6 +243,8 @@ void main() {
|
||||
type: NotificationType.chosenPlanStartedToClientNotification,
|
||||
planName: 'Plan 1',
|
||||
planId: 1,
|
||||
consultantName: '',
|
||||
peerProfileUrl: '',
|
||||
isRead: false,
|
||||
createdAt: DateTime.now(),
|
||||
),
|
||||
@@ -272,6 +286,8 @@ void main() {
|
||||
type: NotificationType.chosenPlanStartedToClientNotification,
|
||||
planName: 'Plan 1',
|
||||
planId: 1,
|
||||
consultantName: '',
|
||||
peerProfileUrl: '',
|
||||
isRead: false,
|
||||
createdAt: DateTime.now(),
|
||||
),
|
||||
@@ -311,6 +327,8 @@ void main() {
|
||||
type: NotificationType.chosenPlanStartedToClientNotification,
|
||||
planName: 'Plan 1',
|
||||
planId: 1,
|
||||
consultantName: '',
|
||||
peerProfileUrl: '',
|
||||
isRead: false,
|
||||
createdAt: DateTime.now(),
|
||||
),
|
||||
@@ -342,6 +360,8 @@ void main() {
|
||||
type: NotificationType.chosenPlanStartedToClientNotification,
|
||||
planName: 'Plan 1',
|
||||
planId: 1,
|
||||
consultantName: '',
|
||||
peerProfileUrl: '',
|
||||
isRead: false,
|
||||
createdAt: DateTime.now(),
|
||||
),
|
||||
@@ -349,6 +369,8 @@ void main() {
|
||||
type: NotificationType.chosenPlanStartedToClientNotification,
|
||||
planName: 'Plan 2',
|
||||
planId: 2,
|
||||
consultantName: '',
|
||||
peerProfileUrl: '',
|
||||
isRead: true,
|
||||
createdAt: DateTime.now(),
|
||||
),
|
||||
@@ -376,6 +398,8 @@ void main() {
|
||||
type: NotificationType.chosenPlanStartedToClientNotification,
|
||||
planName: 'Plan 1',
|
||||
planId: 1,
|
||||
consultantName: '',
|
||||
peerProfileUrl: '',
|
||||
isRead: true,
|
||||
createdAt: DateTime.now(),
|
||||
),
|
||||
@@ -383,6 +407,8 @@ void main() {
|
||||
type: NotificationType.chosenPlanStartedToClientNotification,
|
||||
planName: 'Plan 2',
|
||||
planId: 2,
|
||||
consultantName: '',
|
||||
peerProfileUrl: '',
|
||||
isRead: true,
|
||||
createdAt: DateTime.now(),
|
||||
),
|
||||
@@ -426,6 +452,8 @@ void main() {
|
||||
type: NotificationType.chosenPlanStartedToClientNotification,
|
||||
planName: 'Plan 1',
|
||||
planId: 1,
|
||||
consultantName: '',
|
||||
peerProfileUrl: '',
|
||||
isRead: false,
|
||||
createdAt: DateTime.now(),
|
||||
),
|
||||
@@ -475,6 +503,8 @@ void main() {
|
||||
type: NotificationType.chosenPlanStartedToClientNotification,
|
||||
planName: 'Initial Plan',
|
||||
planId: 1,
|
||||
consultantName: '',
|
||||
peerProfileUrl: '',
|
||||
isRead: false,
|
||||
createdAt: DateTime.now(),
|
||||
),
|
||||
@@ -524,6 +554,8 @@ void main() {
|
||||
type: NotificationType.chosenPlanStartedToClientNotification,
|
||||
planName: 'Initial Plan',
|
||||
planId: 1,
|
||||
consultantName: '',
|
||||
peerProfileUrl: '',
|
||||
isRead: false,
|
||||
createdAt: DateTime.now(),
|
||||
),
|
||||
@@ -568,6 +600,8 @@ void main() {
|
||||
type: NotificationType.chosenPlanStartedToClientNotification,
|
||||
planName: 'Initial Plan',
|
||||
planId: 1,
|
||||
consultantName: '',
|
||||
peerProfileUrl: '',
|
||||
isRead: false,
|
||||
createdAt: DateTime.now(),
|
||||
),
|
||||
@@ -608,6 +642,8 @@ void main() {
|
||||
type: NotificationType.chosenPlanStartedToClientNotification,
|
||||
planName: 'Initial Plan',
|
||||
planId: 1,
|
||||
consultantName: '',
|
||||
peerProfileUrl: '',
|
||||
isRead: false,
|
||||
createdAt: DateTime.now(),
|
||||
),
|
||||
@@ -645,6 +681,8 @@ void main() {
|
||||
type: NotificationType.chosenPlanStartedToClientNotification,
|
||||
planName: 'Initial Plan',
|
||||
planId: 1,
|
||||
consultantName: '',
|
||||
peerProfileUrl: '',
|
||||
isRead: false,
|
||||
createdAt: DateTime.now(),
|
||||
),
|
||||
@@ -688,6 +726,8 @@ void main() {
|
||||
type: NotificationType.chosenPlanStartedToClientNotification,
|
||||
planName: 'Initial Plan',
|
||||
planId: 1,
|
||||
consultantName: '',
|
||||
peerProfileUrl: '',
|
||||
isRead: false,
|
||||
createdAt: DateTime.now(),
|
||||
),
|
||||
@@ -757,6 +797,8 @@ void main() {
|
||||
type: NotificationType.chosenPlanStartedToClientNotification,
|
||||
planName: 'Initial Plan',
|
||||
planId: 1,
|
||||
consultantName: '',
|
||||
peerProfileUrl: '',
|
||||
isRead: false,
|
||||
createdAt: DateTime.now(),
|
||||
),
|
||||
@@ -800,6 +842,8 @@ void main() {
|
||||
type: NotificationType.chosenPlanStartedToClientNotification,
|
||||
planName: 'Initial Plan',
|
||||
planId: 1,
|
||||
consultantName: '',
|
||||
peerProfileUrl: '',
|
||||
isRead: false,
|
||||
createdAt: DateTime.now(),
|
||||
),
|
||||
@@ -843,6 +887,8 @@ void main() {
|
||||
type: NotificationType.chosenPlanStartedToClientNotification,
|
||||
planName: 'Initial Plan',
|
||||
planId: 1,
|
||||
consultantName: '',
|
||||
peerProfileUrl: '',
|
||||
isRead: false,
|
||||
createdAt: DateTime.now(),
|
||||
),
|
||||
@@ -886,6 +932,8 @@ void main() {
|
||||
type: NotificationType.chosenPlanStartedToClientNotification,
|
||||
planName: 'Initial Plan',
|
||||
planId: 1,
|
||||
consultantName: '',
|
||||
peerProfileUrl: '',
|
||||
isRead: false,
|
||||
createdAt: DateTime.now(),
|
||||
),
|
||||
@@ -929,6 +977,8 @@ void main() {
|
||||
type: NotificationType.chosenPlanStartedToClientNotification,
|
||||
planName: 'Initial Plan',
|
||||
planId: 1,
|
||||
consultantName: '',
|
||||
peerProfileUrl: '',
|
||||
isRead: false,
|
||||
createdAt: DateTime.now(),
|
||||
),
|
||||
@@ -972,6 +1022,8 @@ void main() {
|
||||
type: NotificationType.chosenPlanStartedToClientNotification,
|
||||
planName: 'Initial Plan',
|
||||
planId: 1,
|
||||
consultantName: '',
|
||||
peerProfileUrl: '',
|
||||
isRead: false,
|
||||
createdAt: DateTime.now(),
|
||||
),
|
||||
@@ -1015,6 +1067,8 @@ void main() {
|
||||
type: NotificationType.chosenPlanStartedToClientNotification,
|
||||
planName: 'Initial Plan',
|
||||
planId: 1,
|
||||
consultantName: '',
|
||||
peerProfileUrl: '',
|
||||
isRead: false,
|
||||
createdAt: DateTime.now(),
|
||||
),
|
||||
@@ -1058,6 +1112,8 @@ void main() {
|
||||
type: NotificationType.chosenPlanStartedToClientNotification,
|
||||
planName: 'Initial Plan',
|
||||
planId: 1,
|
||||
consultantName: '',
|
||||
peerProfileUrl: '',
|
||||
isRead: false,
|
||||
createdAt: DateTime.now(),
|
||||
),
|
||||
@@ -1100,6 +1156,8 @@ void main() {
|
||||
type: NotificationType.chosenPlanStartedToClientNotification,
|
||||
planName: 'Initial Plan',
|
||||
planId: 1,
|
||||
consultantName: '',
|
||||
peerProfileUrl: '',
|
||||
isRead: false,
|
||||
createdAt: DateTime.now(),
|
||||
),
|
||||
@@ -1137,6 +1195,8 @@ void main() {
|
||||
type: NotificationType.chosenPlanStartedToClientNotification,
|
||||
planName: 'Initial Plan',
|
||||
planId: 1,
|
||||
consultantName: '',
|
||||
peerProfileUrl: '',
|
||||
isRead: false,
|
||||
createdAt: DateTime.now(),
|
||||
),
|
||||
@@ -1174,6 +1234,8 @@ void main() {
|
||||
type: NotificationType.chosenPlanStartedToClientNotification,
|
||||
planName: 'Initial Plan',
|
||||
planId: 1,
|
||||
consultantName: '',
|
||||
peerProfileUrl: '',
|
||||
isRead: false,
|
||||
createdAt: DateTime.now(),
|
||||
),
|
||||
@@ -1217,6 +1279,8 @@ void main() {
|
||||
type: NotificationType.chosenPlanStartedToClientNotification,
|
||||
planName: 'Initial Plan',
|
||||
planId: 1,
|
||||
consultantName: '',
|
||||
peerProfileUrl: '',
|
||||
isRead: false,
|
||||
createdAt: DateTime.now(),
|
||||
),
|
||||
|
||||
@@ -36,8 +36,12 @@ void main() {
|
||||
final notification = PlanSubscriptionStartedToAuthorNotification(
|
||||
type: NotificationType.planSubscriptionStartedToAuthor,
|
||||
planName: 'Test Plan',
|
||||
planId: 1,
|
||||
customerName: 'Test Customer',
|
||||
userId: 0,
|
||||
userPhotoPath: '',
|
||||
chatId: 'chat-123',
|
||||
chatUrl: '',
|
||||
isRead: false,
|
||||
createdAt: DateTime.now(),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user