Skip to content

Commit

Permalink
Merge pull request nextcloud#1145 from nextcloud/fix/nextcloud/dashbo…
Browse files Browse the repository at this point in the history
…ard-tests

fix(nextcloud): Fix dashboard tests
  • Loading branch information
provokateurin authored Nov 16, 2023
2 parents f239c4e + 92d9365 commit 2ce6d92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nextcloud/test/dashboard_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ 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));
});

test('v2', () async {
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));
});
});
},
Expand Down

0 comments on commit 2ce6d92

Please sign in to comment.