Browse Source

fix(nextcloud): Fix dashboard tests

Signed-off-by: jld3103 <jld3103yt@gmail.com>
pull/1145/head
jld3103 1 year ago
parent
commit
92d936583b
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 4
      packages/nextcloud/test/dashboard_test.dart

4
packages/nextcloud/test/dashboard_test.dart

@ -25,7 +25,7 @@ void main() {
final response = await client.dashboard.dashboardApi.getWidgetItems();
final items = response.body.ocs.data;
expect(items.keys, equals(['recommendations', 'spreed']));
expect(items['recommendations'], hasLength(7));
expect(items['recommendations'], hasLength(0));
expect(items['spreed'], hasLength(0));
});
@ -33,7 +33,7 @@ void main() {
final response = await client.dashboard.dashboardApi.getWidgetItemsV2();
expect(response.body.ocs.data.keys, equals(['recommendations']));
final items = response.body.ocs.data['recommendations']!.items;
expect(items, hasLength(7));
expect(items, hasLength(0));
});
});
},

Loading…
Cancel
Save