Browse Source

nextcloud: Stop relying on hashing files

pull/416/head
jld3103 2 years ago
parent
commit
07e1ce1da4
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 7
      packages/nextcloud/test/core_test.dart

7
packages/nextcloud/test/core_test.dart

@ -1,4 +1,3 @@
import 'package:crypto/crypto.dart';
import 'package:nextcloud/nextcloud.dart';
import 'package:test/test.dart';
@ -102,17 +101,17 @@ Future run(final DockerImage image) async {
test('Get preview', () async {
final response = await client.core.getPreview(file: 'Nextcloud.png');
expect(sha1.convert(response).toString(), '168c31b76ae4e8bdc5f8edd4c896f40e9d4afe1e');
expect(response, isNotEmpty);
});
test('Get avatar', () async {
final response = await client.core.getAvatar(userId: 'admin', size: 32);
expect(sha1.convert(response).toString(), '618830d6512203281de64cc738e8a7b0cc3d1f47');
expect(response, isNotEmpty);
});
test('Get dark avatar', () async {
final response = await client.core.getDarkAvatar(userId: 'admin', size: 32);
expect(sha1.convert(response).toString(), 'e7294d71b817d05940574061008c80a7d7a04b87');
expect(response, isNotEmpty);
});
test('Delete app password', () async {

Loading…
Cancel
Save