Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
chore: delete
Browse files Browse the repository at this point in the history
  • Loading branch information
omartinma committed Dec 7, 2023
1 parent aa62760 commit f1cdf8d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions packages/api_client/test/src/api_client_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,14 @@ void main() {

group('post', () {
test('returns the response', () async {
final response = await apiClient.post('/');
final response = await apiClient.post();

expect(response.statusCode, equals(expectedResponse.statusCode));
expect(response.body, equals(expectedResponse.body));
});

test('sends the request correctly', () async {
await apiClient.post(
'/path/to/endpoint',
queryParameters: {'param1': 'value1', 'param2': 'value2'},
body: 'BODY_CONTENT',
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ void main() {
questionsResourceApiNotEnabled = QuestionsResource(apiClient: apiClient);
when(
() => apiClient.post(
any(),
body: any(named: 'body'),
),
).thenAnswer((_) async => response);
Expand Down

0 comments on commit f1cdf8d

Please sign in to comment.