From cb81927633e64717f50fcd080ba9da1e60324a8e Mon Sep 17 00:00:00 2001 From: LeoLox <58687994+leo-lox@users.noreply.github.com> Date: Mon, 20 Jan 2025 17:50:30 +0100 Subject: [PATCH] files non blossom test --- packages/ndk/example/files/files_test.dart | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/packages/ndk/example/files/files_test.dart b/packages/ndk/example/files/files_test.dart index ac2ddbf9..8f73d974 100644 --- a/packages/ndk/example/files/files_test.dart +++ b/packages/ndk/example/files/files_test.dart @@ -4,7 +4,7 @@ import 'package:ndk/ndk.dart'; import 'package:test/test.dart'; void main() async { - test('download test', () async { + test('download test - blossom', () async { final ndk = Ndk.defaultConfig(); final downloadResult = await ndk.files.download( @@ -16,4 +16,16 @@ void main() async { expect(downloadResult.data.length, greaterThan(0)); }); + + test('download test - non blossom', () async { + final ndk = Ndk.defaultConfig(); + + final downloadResult = await ndk.files + .download(url: "https://camelus.app/.well-known/nostr.json"); + + print( + "file of type: ${downloadResult.mimeType}, size: ${downloadResult.data.length}"); + + expect(downloadResult.data.length, greaterThan(0)); + }); }