1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-14 03:19:06 +00:00

Flutter 3.29 beta (#2571)

This commit is contained in:
Eric Windmill
2025-02-12 18:08:01 -05:00
committed by GitHub
parent d62c784789
commit 719fd72c38
685 changed files with 76244 additions and 53721 deletions

View File

@@ -37,8 +37,9 @@ void main() {
'/destination/${kDestination1.ref}/activity',
activites,
);
final result =
await apiClient.getActivityByDestination(kDestination1.ref);
final result = await apiClient.getActivityByDestination(
kDestination1.ref,
);
expect(result.asOk.value, activites);
});

View File

@@ -21,20 +21,10 @@ void main() {
});
test('should post login', () async {
const loginResponse = LoginResponse(
token: 'TOKEN',
userId: '123',
);
mockHttpClient.mockPost(
'/login',
loginResponse,
200,
);
const loginResponse = LoginResponse(token: 'TOKEN', userId: '123');
mockHttpClient.mockPost('/login', loginResponse, 200);
final result = await apiClient.login(
const LoginRequest(
email: 'EMAIL',
password: 'PASSWORD',
),
const LoginRequest(email: 'EMAIL', password: 'PASSWORD'),
);
expect(result.asOk.value, loginResponse);
});