Browse Source

Merge pull request #1145 from nextcloud/fix/nextcloud/dashboard-tests

fix(nextcloud): Fix dashboard tests
pull/1146/head
Kate 1 year ago committed by GitHub
parent
commit
2ce6d92fb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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 response = await client.dashboard.dashboardApi.getWidgetItems();
final items = response.body.ocs.data; final items = response.body.ocs.data;
expect(items.keys, equals(['recommendations', 'spreed'])); expect(items.keys, equals(['recommendations', 'spreed']));
expect(items['recommendations'], hasLength(7)); expect(items['recommendations'], hasLength(0));
expect(items['spreed'], hasLength(0)); expect(items['spreed'], hasLength(0));
}); });
@ -33,7 +33,7 @@ void main() {
final response = await client.dashboard.dashboardApi.getWidgetItemsV2(); final response = await client.dashboard.dashboardApi.getWidgetItemsV2();
expect(response.body.ocs.data.keys, equals(['recommendations'])); expect(response.body.ocs.data.keys, equals(['recommendations']));
final items = response.body.ocs.data['recommendations']!.items; final items = response.body.ocs.data['recommendations']!.items;
expect(items, hasLength(7)); expect(items, hasLength(0));
}); });
}); });
}, },

Loading…
Cancel
Save