-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: add tests for TransactionNotifier
#317
test: add tests for TransactionNotifier
#317
Conversation
class Listener<T> extends Mock { | ||
void call(T? previous, T next); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
think we can just move this to mocks.dart
final pfi = TestData.getPfi('did:dht:pfiDid'); | ||
const exchangeId = 'rfq_01ha835rhefwmagsknrrhvaa0k'; | ||
final parameters = TransactionProviderParameters(pfi, exchangeId); | ||
|
||
final did = TestData.aliceDid; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: let's move this to right below the await TestData.initializeDids()
final container = createContainer( | ||
overrides: [ | ||
didProvider.overrideWith( | ||
(ref) => did, | ||
), | ||
tbdexServiceProvider.overrideWith( | ||
(ref) => mockTbdexService, | ||
), | ||
], | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice use of the createContainer()
helper!
Thanks for the feedback! All comments have been addressed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great work once again :)
This PR adds tests for the
TransactionNotifier
class.Closes #291.