Skip to content

Commit

Permalink
fix(nextcloud): Fix dashboard tests
Browse files Browse the repository at this point in the history
Signed-off-by: jld3103 <jld3103yt@gmail.com>
  • Loading branch information
provokateurin committed Nov 16, 2023
1 parent f239c4e commit 92d9365
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 92d9365

Please sign in to comment.