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

(Test) Home Component test case for 'stepOne' navigation #1129

Closed
fernandomg opened this issue Sep 6, 2018 · 0 comments
Closed

(Test) Home Component test case for 'stepOne' navigation #1129

fernandomg opened this issue Sep 6, 2018 · 0 comments
Assignees

Comments

@fernandomg
Copy link
Contributor

Problem: When testing Home component (see PR #1122), the method getCrowdsaleAssets fails with the following error.

(node:28260) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'URL' of null
    at new XMLHttpRequest (/token-wizard/node_modules/jsdom/lib/jsdom/living/xmlhttprequest.js:116:39)
    at /token-wizard/src/utils/utils.js:81:5054
    at new Promise (<anonymous>)
    at fetchFile (/token-wizard/src/utils/utils.js:81:4900)
    at setFlatFileContentToState (/token-wizard/src/utils/utils.js:81:4778)
    at _callee2$ (/token-wizard/src/stores/utils.js:60:129)
    at tryCatch (/token-wizard/node_modules/regenerator-runtime/runtime.js:65:40)

Solution: Review and refactor to prevent the Unhandled PromiseRejectionWarning message.

Note: There's a commented out test case that should pass if this issue is fixed (should navigate to StepOne)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants