I'm not sure why I didn't think of this when I was upgrading Force.... 😞
This just makes it much easier to test: tests may not have a component wrapped with a theme provider and if you're using a component that makes use of the theme, then these will fail. 99% of the time, this doesn't matter at all. So just return the default theme if there isn't one provided.
I'm not sure why I didn't think of this when I was upgrading Force.... 😞
This just makes it much easier to test: tests may not have a component wrapped with a theme provider and if you're using a component that makes use of the theme, then these will fail. 99% of the time, this doesn't matter at all. So just return the default theme if there isn't one provided.
Re: https://github.com/artsy/volt-v2/pull/1244