Skip to content

Commit d6381f3

Browse files
committed
fix: Corrected hasMore field to has_more
- Updated JSON key in tests
1 parent 88edd4b commit d6381f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/src/models/responses/paginated_response_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ void main() {
2121
final json = {
2222
'items': [1, 2, 3],
2323
'cursor': 'abc',
24-
'hasMore': true,
24+
'has_more': true,
2525
};
2626
final response = PaginatedResponse<int>.fromJson(
2727
json,
@@ -41,7 +41,7 @@ void main() {
4141
final json = response.toJson((value) => value);
4242
expect(json['items'], [1, 2, 3]);
4343
expect(json['cursor'], 'abc');
44-
expect(json['hasMore'], true);
44+
expect(json['has_more'], true);
4545
});
4646

4747
test('props returns a list of properties', () {

0 commit comments

Comments
 (0)