Skip to content

Commit d2bf08e

Browse files
committed
chore: formatted test files
1 parent da17b49 commit d2bf08e

File tree

5 files changed

+11
-13
lines changed

5 files changed

+11
-13
lines changed

test/offline_persistence_test.dart

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ void main() {
2828
defaultLookahead,
2929
);
3030

31-
final addressInfo =
32-
wallet.revealNextAddress(KeychainKind.external_);
31+
final addressInfo = wallet.revealNextAddress(KeychainKind.external_);
3332
final expectedAddress = Address(expectedPersistedAddress, Network.signet);
3433

3534
expect(addressInfo.index, equals(7));
@@ -44,13 +43,13 @@ void main() {
4443
final persister = Persister.newSqlite(dbPath);
4544
final wallet = Wallet.load(
4645
buildDescriptor(persistencePublicDescriptorString, Network.signet),
47-
buildDescriptor(persistencePublicChangeDescriptorString, Network.signet),
46+
buildDescriptor(
47+
persistencePublicChangeDescriptorString, Network.signet),
4848
persister,
4949
defaultLookahead,
5050
);
5151

52-
final addressInfo =
53-
wallet.revealNextAddress(KeychainKind.external_);
52+
final addressInfo = wallet.revealNextAddress(KeychainKind.external_);
5453

5554
expect(addressInfo.index, equals(7));
5655
final expectedAddress = Address(expectedPersistedAddress, Network.signet);

test/offline_wallet_test.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ void main() {
1919
defaultLookahead,
2020
);
2121

22-
final addressInfo =
23-
wallet.revealNextAddress(KeychainKind.external_);
22+
final addressInfo = wallet.revealNextAddress(KeychainKind.external_);
2423
final expectedAddress = Address(expectedOfflineAddress, Network.signet);
2524

2625
expect(addressInfo.address.isValidForNetwork(Network.testnet), isTrue);

test/test_constants.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,8 @@ const multipathDescriptorString =
3131
const privateMultipathDescriptorString =
3232
"tprv8ZgxMBicQKsPf2qfrEygW6fdYseJDDrVnDv26PH5BHdvSuG6ecCbHqLVof9yZcMoM31z9ur3tTYbSnr1WBqbGX97CbXcmp5H6qeMpyvx35B/<0;1>/*)";
3333

34-
const expectedOfflineAddress =
35-
"tb1qhjys9wxlfykmte7ftryptx975uqgd6kcm6a7z4";
36-
const expectedPersistedAddress =
37-
"tb1qan3lldunh37ma6c0afeywgjyjgnyc8uz975zl2";
34+
const expectedOfflineAddress = "tb1qhjys9wxlfykmte7ftryptx975uqgd6kcm6a7z4";
35+
const expectedPersistedAddress = "tb1qan3lldunh37ma6c0afeywgjyjgnyc8uz975zl2";
3836

3937
Descriptor buildDescriptor(String descriptor, Network network) =>
4038
Descriptor(descriptor, network);

test/wallet_behavior_test.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ void main() {
3232
expect(wallet.balance().total.toSat(), equals(0));
3333
});
3434

35-
test('single-descriptor wallet returns identical external/internal addresses', () {
35+
test(
36+
'single-descriptor wallet returns identical external/internal addresses',
37+
() {
3638
final persister = Persister.newInMemory();
3739
final wallet = Wallet.createSingle(
3840
buildBip84Descriptor(Network.testnet),

0 commit comments

Comments
 (0)