-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
This library is great! I've started using ternary expressions such as Device.isIpad() ? a : b throughout my code. But now I'm at a point where I'd like to test it (I am using Enzyme to unit test my entire app).
Therefore, it would be great if this library supplied a setDevice method that can be invoked before the tests run. Otherwise, as it currently stands, Device.model is evaluated as undefined in all tests, so these ternary expressions are untestable.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels