Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

test: Fix Jest localStorage warning, fix invalid hex codes #61

Merged
merged 1 commit into from
Sep 24, 2018

Conversation

markdalgleish
Copy link
Member

I was trying to investigate a potential issue with data-sketch-color, but immediately ran into issues where the test suite was failing with the following message:

SecurityError: localStorage is not available for opaque origins

The fix was to set testEnvironment to node in the Jest config.

After fixing this, I noticed that we actually had some invalid hex codes in our test suite, which was resulting in unexpected document colours. I've update the hex codes and the snapshots, and verified that the colours show up correctly when importing into Sketch.

Luckily, as far as data-sketch-color goes, I wasn't able to find any issues.

Copy link
Member

@jahredhope jahredhope left a comment

Choose a reason for hiding this comment

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

Makes sense

@markdalgleish markdalgleish merged commit ed60b44 into master Sep 24, 2018
@markdalgleish markdalgleish deleted the fix-test-suite branch September 24, 2018 23:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants