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

Fix image url error when missing crop or hotspot #923

Merged
merged 3 commits into from
Aug 20, 2018

Conversation

bjoerge
Copy link
Member

@bjoerge bjoerge commented Aug 20, 2018

This fixes an error that happened if image url builder was passed an image with either hotspot or crop but not both.

While I was at it, I took the liberty to upgrade jest (which fixes the notorious SecurityError: localStorage is not available for opaque origins- error) and switched to using jest snapshots instead of hard coded expected return values.

@bjoerge bjoerge requested a review from rexxars August 20, 2018 13:45
Copy link
Member

@rexxars rexxars left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@bjoerge bjoerge merged commit 0f66b31 into next Aug 20, 2018
@bjoerge bjoerge deleted the fix-image-url-error-when-missing-crop-or-hotspot branch August 20, 2018 13:49
kristofferjs pushed a commit that referenced this pull request Sep 3, 2018
* [image-url] Upgrade to latest jest

* [image-url] Add failing test and use snapshots instead

* [image-url] Fix error caused by missing crop or hotspot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants