mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
continue formatting
This commit is contained in:
@@ -48,7 +48,8 @@ void main() {
|
||||
|
||||
group("getCanonicalCryptoAmount", () {
|
||||
test("Amount should not change for Bitcoin", () {
|
||||
final amount = amountParsingProxy.getCanonicalCryptoAmount("0.000001", CryptoCurrency.btc);
|
||||
final amount =
|
||||
amountParsingProxy.getCanonicalCryptoAmount("0.000001", CryptoCurrency.btc);
|
||||
expect(amount, "0.000001");
|
||||
});
|
||||
|
||||
@@ -58,7 +59,8 @@ void main() {
|
||||
});
|
||||
|
||||
test("Amount should not change for Bitcoin", () {
|
||||
final amount = amountParsingProxy.getCanonicalCryptoAmount("0.000001", CryptoCurrency.btcln);
|
||||
final amount =
|
||||
amountParsingProxy.getCanonicalCryptoAmount("0.000001", CryptoCurrency.btcln);
|
||||
expect(amount, "0.000001");
|
||||
});
|
||||
|
||||
@@ -118,7 +120,8 @@ void main() {
|
||||
});
|
||||
|
||||
test("Amount should be formated to Satoshi for Bitcoin Lightning", () {
|
||||
final amount = amountParsingProxy.getDisplayCryptoAmount("0.000001", CryptoCurrency.btcln);
|
||||
final amount =
|
||||
amountParsingProxy.getDisplayCryptoAmount("0.000001", CryptoCurrency.btcln);
|
||||
expect(amount, "100");
|
||||
});
|
||||
|
||||
|
||||
@@ -48,7 +48,8 @@ void main() {
|
||||
});
|
||||
|
||||
test('detects Lightning invoice', () {
|
||||
const invoice = 'lnbc1u1p3zj7j8pp5vkwxc4vxfzgzxcjzk5ksp0l7jgrgzmqxqmexxp8e8gfqk6s0knnqdlc35hsggzypnxw7xxxnrvd3hscqzpgxqrrsssp5txs5g8vkdmdtnm8g5v9m3u094nnxkl0jjf38jj5xn2pptxlqkwn7gpgfkt7q6z0frcj7vjy4mv7659hccln2e0gzt4ufnsukxcnknh7e58kwnr8pk6kgv6vrghcpld2z5n';
|
||||
const invoice =
|
||||
'lnbc1u1p3zj7j8pp5vkwxc4vxfzgzxcjzk5ksp0l7jgrgzmqxqmexxp8e8gfqk6s0knnqdlc35hsggzypnxw7xxxnrvd3hscqzpgxqrrsssp5txs5g8vkdmdtnm8g5v9m3u094nnxkl0jjf38jj5xn2pptxlqkwn7gpgfkt7q6z0frcj7vjy4mv7659hccln2e0gzt4ufnsukxcnknh7e58kwnr8pk6kgv6vrghcpld2z5n';
|
||||
final result = UniversalAddressDetector.detectAddress(invoice);
|
||||
|
||||
expect(result.isValid, true);
|
||||
|
||||
Reference in New Issue
Block a user