fix(search): change longname to be an optional property #14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR fixes an issue where Yahoo doesn't always return
SearchQuoteYahooEquity.longname
.Issue
See #13.
Solution
Change so that
SearchQuoteYahooEquity.longname
is an optional property which is not always returned by Yahoo. I've also added some more tests to the search module.Changes
longname
to be an optional propertysearch.spec.ts
schema.json
changed after runningyarn generateSchema
How to test
Comments (for the reviewer)
Validate that the changes to
schema.json
are okAfter running
yarn generateSchema
I saw thatschema.json
was changed in more places than I expected. I'd appreciate a second opinion that this is all good.Custom jest reporters prevent
--verbose
to output individual testsI like to run
jest --verbose
so that I can see the results of the individual tests when working. However, the custom reporters that was added, see code here prevents that behaviour. In order to see the individual tests (as shown in the above section) I had to comment out those. See below.What are your thoughts on this? I personally appreciate seeing what different tests are running.