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

Export "createBroadcast" #614

Merged
merged 4 commits into from
Apr 11, 2018

Conversation

billyvg
Copy link
Contributor

@billyvg billyvg commented Apr 5, 2018

What:
Export createBroadcast from emotion-theming

Why:
This is needed so you can create a broadcast that can be used in tests.
e.g. https://github.com/getsentry/sentry/pull/7935/files

How:

Checklist:

  • Documentation
  • Tests N/A
  • Code complete

it('can use theme from a ThemeProvider', function() {
const wrapper = mount(<MyComponent />, {
context: {
[channel]: broadcast,
Copy link
Member

Choose a reason for hiding this comment

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

is there supposed to be a const broadcast = createBroadcast() somewhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed!

@ChristopherBiscardi
Copy link
Member

cc/ @tkh44

@tkh44
Copy link
Member

tkh44 commented Apr 11, 2018

Thanks @ChristopherBiscardi! This got lost in the shuffle.

@tkh44
Copy link
Member

tkh44 commented Apr 11, 2018

Thanks for contributing @billyvg 🎉

@tkh44 tkh44 merged commit f2946e4 into emotion-js:master Apr 11, 2018
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

3 participants