Skip to content

Commit

Permalink
Merge pull request #1616 from nextcloud/refactor/neon_dashboard/stop-…
Browse files Browse the repository at this point in the history
…using-collection
  • Loading branch information
provokateurin authored Feb 19, 2024
2 parents 86d37f8 + 410ad1c commit bdfe61f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion packages/neon/neon_dashboard/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ environment:

dependencies:
built_collection: ^5.0.0
collection: ^1.0.0
flutter:
sdk: flutter
flutter_localizations:
Expand Down
6 changes: 4 additions & 2 deletions packages/neon/neon_dashboard/test/bloc_test.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'dart:convert';

import 'package:built_collection/built_collection.dart';
import 'package:collection/collection.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:http/http.dart';
import 'package:mocktail/mocktail.dart';
Expand Down Expand Up @@ -155,7 +154,10 @@ void main() {
expect(
bloc.items
.transformResult(
(e) => BuiltList<String>(e.values.map((items) => items.items.map((item) => item.title)).flattened),
(e) => BuiltList<String>([
for (final items in e.values)
for (final item in items.items) item.title,
]),
)
.distinct(),
emitsInOrder([
Expand Down

0 comments on commit bdfe61f

Please sign in to comment.