Skip to content

Commit

Permalink
✅ Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Sep 29, 2024
1 parent bc73e51 commit 6017e50
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ environment:
sdk: '>=3.0.0 <4.0.0'
flutter: '>=3.10.0'

dependencies
dependencies:
archive: ^3.5.0
args: ^2.3.1
bip32: ^2.0.0
Expand Down
10 changes: 7 additions & 3 deletions test/principal/principal.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,20 +93,24 @@ void principalTest() {
() => Principal.fromText('0chl6-4hpzw-vqaaa-aaaaa-c').toHex(),
throwsA(
isError<ArgumentError>(
'Principal expected to be 2chl6-4hpzw-vqaaa-aaaaa-c but got',
'The principal is expected to be 2chl6-4hpzw-vqaaa-aaaaa-c but got',
),
),
);
expect(
() => Principal.fromText('0aaaa-aa').toHex(),
throwsA(
isError<ArgumentError>('Principal expected to be aaaaa-aa but got'),
isError<ArgumentError>(
'The principal is expected to be aaaaa-aa but got',
),
),
);
expect(
() => Principal.fromText('0vxsx-fae').toHex(),
throwsA(
isError<ArgumentError>('Principal expected to be 2vxsx-fae but got'),
isError<ArgumentError>(
'The principal is expected to be 2vxsx-fae but got',
),
),
);
});
Expand Down

0 comments on commit 6017e50

Please sign in to comment.