Skip to content

v1.0.3 - Integration Test Fixes and Mock Implementations

Choose a tag to compare

@Jetlum Jetlum released this 26 Nov 14:33
· 24 commits to main since this release

This release focuses on fixing integration tests and enhancing mock implementations to ensure robust and reliable testing.

Key Features:

  1. Integration Test Fixes:
  • Corrected the usage of the fromAddress variable in assertions.
  • Fixed the WithBody call to use the correct type.
  • Ensured that the signed transaction is properly included in the mock block.
  1. Mock Implementations:
  • Added a mock NFT detector implementation.
  • Updated mock Ethereum client to include necessary function fields.
  • Ensured mock client functions are properly set in tests.

Detailed Changes:

  1. Integration Test Enhancements:
  • From Address Assertion: Ensured that the fromAddress variable is used in assertions to validate the sender's address.
  • Correct WithBody Call: Fixed the WithBody call to use the correct types.Body type, ensuring proper block creation in tests.
  • Mock Transaction: Included a signed transaction in the mock block to trigger email notifications.
  1. Mock NFT Detector:
  • Implementation: Added a mock NFT detector with a customizable IsNFTTransactionFunc function.
  • Usage in Tests: Updated integration tests to use the mock NFT detector.
  1. Mock Ethereum Client:
  • Function Fields: Added necessary function fields (BlockByHashFunc, NetworkIDFunc, etc.) to the mock Ethereum client.
  • Setter Methods: Provided setter methods to update mock functions in tests.