Skip to content

Commit

Permalink
tests: added unit test for uploadImageToIPFS
Browse files Browse the repository at this point in the history
  • Loading branch information
yatendra2001 committed Jul 28, 2023
1 parent 1898ab2 commit 60dd9a9
Show file tree
Hide file tree
Showing 6 changed files with 1,645 additions and 154 deletions.
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ class MyApp extends StatelessWidget {
},
);
}
}
}
4 changes: 4 additions & 0 deletions lib/mint_nft/nft_mint_repo.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// ignore_for_file: override_on_non_overriding_member

import 'dart:convert';
import 'dart:developer' as developer;
import 'dart:io';
Expand All @@ -9,9 +11,11 @@ import 'package:http/http.dart' as http;
import 'package:http_parser/http_parser.dart';
// ignore: depend_on_referenced_packages
import 'package:path_provider/path_provider.dart';
import 'package:welltested/welltested.dart';

import '../../keys.dart';

@Welltested()
class NFTMintRepo {
Future<String?> generateImageFromAI({required String prompt}) async {
String errorMessage = "Something went wrong";
Expand Down
Loading

0 comments on commit 60dd9a9

Please sign in to comment.