MatchMediaMock
Simple server-side compatible substitution for Window.matchMedia()
based on css-mediaquery.
Designed for use with Radium.
Basic usage
var matchMediaMock = matchMediaMock matches // falsematches // true var mediaQueryList = mediaQueryListmediaQueryListmediaQueryList
For more details about matching check out css-mediaquery!
Radium
Example usage withvar Radium = var matchMediaMock = Radiumconfig app
For more details see the Radium docs