mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2026-01-02 22:04:26 +01:00
Add a dummy test for Dart package
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
import 'helpers.dart';
|
||||
@@ -7,5 +8,18 @@ void main() {
|
||||
setUpAll(() async {
|
||||
await initApi();
|
||||
});
|
||||
|
||||
test(
|
||||
"after setting up, getInfo should throw exception with 'Not initialized' message",
|
||||
() async {
|
||||
GetInfoRequest req = GetInfoRequest(withScan: true);
|
||||
try {
|
||||
await getInfo(req: req);
|
||||
} catch (e) {
|
||||
if (e is AnyhowException) {
|
||||
expect(e.message, "Not initialized");
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user