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)
Problem: When testing
Home
component (see PR #1122), the methodgetCrowdsaleAssets
fails with the following error.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
)