Browse Source

Merge pull request #1184 from nextcloud/test/nextcloud/version-check

pull/1185/merge
Kate 1 year ago committed by GitHub
parent
commit
e22b6f3ca2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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