morajabi / styled-media-query

💅💍 Better media queries for styled-component
MIT License
1.32k stars 53 forks source link

Write tests with jest (Coverage 100%) #15

Closed timhagn closed 5 years ago

timhagn commented 6 years ago

As promised, here the tests written in jest. Created a second pull request, so that you have it easier to test your workflow with the updated dependencies.

For the tests to work I did the following:

=============================== Coverage summary ===============================
Statements   : 100% ( 36/36 )
Branches     : 81.82% ( 9/11 )
Functions    : 100% ( 14/14 )
Lines        : 100% ( 30/30 )
================================================================================

Things that might be further done:

"Breaking" changes:

I squashed the commits for your convenience.

Edit: Nearly forgot: This PR closes #1

morajabi commented 5 years ago

@timhagn do you think you can resolve the conflicts and rebase? that'd be helpful! but if you can't no worries :)

timhagn commented 5 years ago

done : )

morajabi commented 5 years ago

@timhagn Tim, please add your name into AUTHORS file. Also, I see @ApacheEx isn't there too. That's meant to have everyone.

Can you double check if this branch is rebased with current master? I see some unnecessary and outdated conflicts. For example the version range of styled-components doesn't match :)

timhagn commented 5 years ago

@morajabi Added myself to the AUTHORS file and updated the branch.

timhagn commented 5 years ago

Will close this for now and open another, less intrusive one : ).