@@ -63,7 +63,7 @@ void main() {
63
63
64
64
test ('propagates NetworkException from client' , () async {
65
65
// Arrange
66
- final exception = NetworkException ();
66
+ const exception = NetworkException ();
67
67
when (
68
68
() => mockEmailClient.sendOtpEmail (
69
69
recipientEmail: any (named: 'recipientEmail' ),
@@ -92,7 +92,7 @@ void main() {
92
92
93
93
test ('propagates InvalidInputException from client' , () async {
94
94
// Arrange
95
- final exception = InvalidInputException ('Invalid email format' );
95
+ const exception = InvalidInputException ('Invalid email format' );
96
96
when (
97
97
() => mockEmailClient.sendOtpEmail (
98
98
recipientEmail: any (named: 'recipientEmail' ),
@@ -121,7 +121,7 @@ void main() {
121
121
122
122
test ('propagates ServerException from client' , () async {
123
123
// Arrange
124
- final exception = ServerException ('Email service unavailable' );
124
+ const exception = ServerException ('Email service unavailable' );
125
125
when (
126
126
() => mockEmailClient.sendOtpEmail (
127
127
recipientEmail: any (named: 'recipientEmail' ),
@@ -150,7 +150,7 @@ void main() {
150
150
151
151
test ('propagates OperationFailedException from client' , () async {
152
152
// Arrange
153
- final exception = OperationFailedException ('Unknown sending error' );
153
+ const exception = OperationFailedException ('Unknown sending error' );
154
154
when (
155
155
() => mockEmailClient.sendOtpEmail (
156
156
recipientEmail: any (named: 'recipientEmail' ),
0 commit comments