Calling API in LatestReportColumn.dart
and improving UI
This commit is contained in:
@@ -98,14 +98,14 @@ void main() {
|
||||
'Id': 'older',
|
||||
'Author': 'Ada',
|
||||
'Timestamp': '2026-08-20T10:00:00Z',
|
||||
'Type': 'Info',
|
||||
'Type': 'LOG',
|
||||
'Text': 'first',
|
||||
},
|
||||
{
|
||||
'Id': 'newer',
|
||||
'Author': 'Grace',
|
||||
'Timestamp': '2026-08-27T10:00:00Z',
|
||||
'Type': 'Warning',
|
||||
'Type': 'CODE_REVIEW',
|
||||
'Text': 'second',
|
||||
},
|
||||
]),
|
||||
@@ -115,7 +115,7 @@ void main() {
|
||||
|
||||
expect(reports.map((report) => report.id), ['newer', 'older']);
|
||||
expect(reports.first.author, 'Grace');
|
||||
expect(reports.first.type, 'Warning');
|
||||
expect(reports.first.type, EReportType.codeReview);
|
||||
});
|
||||
|
||||
test('maps error status codes onto ApiHttpException', () async {
|
||||
|
||||
Reference in New Issue
Block a user