Skip to content

fix: nit pick unit test for method isValidNetworkName #14500

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

stanleyyconsensys
Copy link
Contributor

Description

Fix a unit test for isValidNetworkName - returns false if the chainId is not Mainnet, Linea Mainnet, MegaETH Testnet and the network nickname is different with network name'

It was return true due to the condition is not fit to the test case ( "network nickname is equal to network name" )
it should expect to false when condition is fit ( "network nickname is different to network name" )

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@stanleyyconsensys stanleyyconsensys added No QA Needed Apply this label when your PR does not need any QA effort. team-network-enablement labels Apr 8, 2025
@stanleyyconsensys stanleyyconsensys requested a review from a team as a code owner April 8, 2025 10:24
Copy link
Contributor

github-actions bot commented Apr 8, 2025

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@stanleyyconsensys stanleyyconsensys added the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Apr 8, 2025
@github-project-automation github-project-automation bot moved this to Needs dev review in PR review queue Apr 8, 2025
Copy link

sonarqubecloud bot commented Apr 8, 2025

@stanleyyconsensys stanleyyconsensys added the Run Smoke E2E Triggers smoke e2e on Bitrise label Apr 8, 2025
Copy link
Contributor

github-actions bot commented Apr 8, 2025

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: f18ba3c
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/088567bd-f2c8-449d-8dd9-f0d30715a6e5

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) No QA Needed Apply this label when your PR does not need any QA effort. Run Smoke E2E Triggers smoke e2e on Bitrise team-network-enablement
Projects
Status: Needs dev review
Development

Successfully merging this pull request may close these issues.

2 participants