|
|
|
@ -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 { |
|
|
|
|