@@ -15,9 +15,7 @@ class _FakeAiService extends AiService {
1515 final bool shouldThrow;
1616
1717 _FakeAiService ({this .response, this .shouldThrow = false })
18- : super (
19- client: MockClient ((_) async => http.Response ('' , 500 )),
20- );
18+ : super (client: MockClient ((_) async => http.Response ('' , 500 )));
2119
2220 @override
2321 Future <String > ask (
@@ -60,7 +58,7 @@ void main() {
6058 expect (result.summary, '' );
6159 expect (result.fullBody, '' );
6260 expect (result.mood, 'calm' );
63- expect (result.moodEmoji, '🌿 ' );
61+ expect (result.moodEmoji, '🫀 ' );
6462 expect (result.tags, isEmpty);
6563 });
6664
@@ -167,9 +165,7 @@ void main() {
167165 });
168166
169167 test ('returns null when AI throws' , () async {
170- final service = JournalAiService (
171- ai: _FakeAiService (shouldThrow: true ),
172- );
168+ final service = JournalAiService (ai: _FakeAiService (shouldThrow: true ));
173169
174170 final captures = [
175171 CaptureEntry (
@@ -270,12 +266,8 @@ class _CapturingAiService extends AiService {
270266 final String aiResponse;
271267 final void Function (String ) onPrompt;
272268
273- _CapturingAiService ({
274- required this .aiResponse,
275- required this .onPrompt,
276- }) : super (
277- client: MockClient ((_) async => http.Response ('' , 500 )),
278- );
269+ _CapturingAiService ({required this .aiResponse, required this .onPrompt})
270+ : super (client: MockClient ((_) async => http.Response ('' , 500 )));
279271
280272 @override
281273 Future <String > ask (
0 commit comments