mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
test: remove checks for messages of throws
Platform specific messages for throws is different, so checking that test throws proper type should be enough
This commit is contained in:
parent
8791527ad9
commit
7f0cd86e72
35 changed files with 171 additions and 1331 deletions
|
@ -178,13 +178,7 @@ Santa Claus <santa.claus@northpole.xx> <me@company.xx>
|
|||
test('throws when initializing from repository and error occurs', () {
|
||||
expect(
|
||||
() => Mailmap.fromRepository(Repository(nullptr)),
|
||||
throwsA(
|
||||
isA<LibGit2Error>().having(
|
||||
(e) => e.toString(),
|
||||
'error',
|
||||
"invalid argument: 'repo'",
|
||||
),
|
||||
),
|
||||
throwsA(isA<LibGit2Error>()),
|
||||
);
|
||||
});
|
||||
|
||||
|
@ -230,13 +224,7 @@ Santa Claus <santa.claus@northpole.xx> <me@company.xx>
|
|||
() => mailmap.addEntry(
|
||||
replaceEmail: ' ',
|
||||
),
|
||||
throwsA(
|
||||
isA<ArgumentError>().having(
|
||||
(e) => e.toString(),
|
||||
'error',
|
||||
'Invalid argument: "replaceEmail can\'t be empty"',
|
||||
),
|
||||
),
|
||||
throwsA(isA<ArgumentError>()),
|
||||
);
|
||||
|
||||
mailmap.free();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue