Skip to content
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

Improve Error Messages in Test Cases #178

Closed
wants to merge 1 commit into from

Conversation

magecnion
Copy link
Contributor

@magecnion magecnion commented Nov 15, 2023

PR Type:

Refactoring


PR Description:

This PR refactors the error handling in two test cases. The changes include:

  • Decoding the error message from hexadecimal to a string.
  • Updating the expected error messages to be more descriptive.

PR Main Files Walkthrough:

files:
  • ownership-chain/e2e-tests/tests/test-create-collection.ts: Refactored the error handling in the test case 'when collection does not exist owner of call should fail'. The error message is now decoded from hexadecimal to a string and the expected error message is updated to 'invalid collection address'.
  • ownership-chain/e2e-tests/tests/test-evolution.ts: Refactored the error handling in the test case 'when asset is minted it should return token uri'. The error message is now decoded from hexadecimal to a string and the expected error message is updated to 'asset does not exist'.

@magecnion
Copy link
Contributor Author

/describe

@magecnion magecnion linked an issue Nov 15, 2023 that may be closed by this pull request
@github-actions github-actions bot changed the title check revert reason Improve Error Messages in Test Cases Nov 15, 2023
@magecnion magecnion closed this Nov 16, 2023
@ghost ghost deleted the test/check_revert_error branch November 17, 2023 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Evochain Collections by contractAddress instead of collectionId
1 participant