Browse Source

test(nextcloud): Ensure versions for version checks are parsed correctly

Signed-off-by: jld3103 <jld3103yt@gmail.com>
pull/1184/head
jld3103 1 year ago
parent
commit
805db1a0fc
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 2
      packages/nextcloud/test/core_test.dart
  2. 2
      packages/nextcloud/test/news_test.dart
  3. 2
      packages/nextcloud/test/notes_test.dart
  4. 2
      packages/nextcloud/test/spreed_test.dart

2
packages/nextcloud/test/core_test.dart

@ -23,6 +23,8 @@ void main() {
expect(() => response.headers, isA<void>()); expect(() => response.headers, isA<void>());
final result = client.core.getVersionCheck(response.body.ocs.data); final result = client.core.getVersionCheck(response.body.ocs.data);
expect(result.versions, isNotNull);
expect(result.versions, isNotEmpty);
expect(result.isSupported, isTrue); expect(result.isSupported, isTrue);
}); });

2
packages/nextcloud/test/news_test.dart

@ -30,6 +30,8 @@ void main() {
test('Is supported', () async { test('Is supported', () async {
final result = await client.news.getVersionCheck(); final result = await client.news.getVersionCheck();
expect(result.versions, isNotNull);
expect(result.versions, isNotEmpty);
expect(result.isSupported, isTrue); expect(result.isSupported, isTrue);
}); });

2
packages/nextcloud/test/notes_test.dart

@ -23,6 +23,8 @@ void main() {
expect(() => response.headers, isA<void>()); expect(() => response.headers, isA<void>());
final result = client.notes.getVersionCheck(response.body.ocs.data); final result = client.notes.getVersionCheck(response.body.ocs.data);
expect(result.versions, isNotNull);
expect(result.versions, isNotEmpty);
expect(result.isSupported, isTrue); expect(result.isSupported, isTrue);
}); });

2
packages/nextcloud/test/spreed_test.dart

@ -35,6 +35,8 @@ void main() {
expect(() => response.headers, isA<void>()); expect(() => response.headers, isA<void>());
final result = client1.spreed.getVersionCheck(response.body.ocs.data); final result = client1.spreed.getVersionCheck(response.body.ocs.data);
expect(result.versions, isNotNull);
expect(result.versions, isNotEmpty);
expect(result.isSupported, isTrue); expect(result.isSupported, isTrue);
}); });

Loading…
Cancel
Save