some fixes
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
import 'dart:io';
|
||||
import 'dart:convert';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:dio/dio.dart';
|
||||
import 'package:app_boilerplate/data/immich/immich_service.dart';
|
||||
import 'package:app_boilerplate/data/immich/models/immich_asset.dart';
|
||||
import 'package:app_boilerplate/data/immich/models/upload_response.dart';
|
||||
import 'package:app_boilerplate/data/local/local_storage_service.dart';
|
||||
import 'package:app_boilerplate/data/local/models/item.dart';
|
||||
import 'package:path/path.dart' as path;
|
||||
@@ -318,7 +316,10 @@ void main() {
|
||||
if (path == '/api/search/metadata') {
|
||||
return Response(
|
||||
statusCode: 500,
|
||||
data: {'error': 'Internal server error', 'message': 'Internal server error'},
|
||||
data: {
|
||||
'error': 'Internal server error',
|
||||
'message': 'Internal server error'
|
||||
},
|
||||
requestOptions: RequestOptions(path: path),
|
||||
);
|
||||
}
|
||||
@@ -445,7 +446,8 @@ void main() {
|
||||
|
||||
// Assert
|
||||
expect(cached.length, equals(2));
|
||||
expect(cached.map((a) => a.id).toList(), containsAll(['asset-1', 'asset-2']));
|
||||
expect(cached.map((a) => a.id).toList(),
|
||||
containsAll(['asset-1', 'asset-2']));
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user