Decisiv / styled-components-modifiers

A library to enable BEM flavored modifiers (and responsive modifiers) in styled components.
MIT License
298 stars 11 forks source link

Verifies modifierFunc exists before calling #9

Closed andrewtpoe closed 6 years ago

andrewtpoe commented 6 years ago

OVERVIEW

Resolves #8 by verifying a modifierFunc exists before calling the function.

WHERE SHOULD THE REVIEWER START?

lib/utils/modifiedStyles.js

HOW CAN THIS BE MANUALLY TESTED?

Run the test suite. Observe the newly added test does not fail.

ANY NEW DEPENDENCIES ADDED?

lodash.isfunction

CHECKLIST

Be sure all items arebefore submitting a PR for review.

GIF