The googleImagesCache is currently not marked ready. This means while it is correctly build it is not used in subsequent calls to projectImages(). This commit set the cache to ready after it got populated.
The first commit fixes the issue, the second adds the test that shows the behavior. Happy to talk about the test more, it makes google a bit easier to test but maybe you prefer a different approach :)
The googleImagesCache is currently not marked
ready
. This means while it is correctly build it is not used in subsequent calls to projectImages(). This commit set the cache to ready after it got populated.The first commit fixes the issue, the second adds the test that shows the behavior. Happy to talk about the test more, it makes google a bit easier to test but maybe you prefer a different approach :)