import * as tape from 'tape' ; import styleToString from '../src/styleToString' ; tape . test ( 'styleToString' , function ( t ) { t . equals ( styleToString ( { borderColor : 'blue' } ) , 'border-color:blue;' , '`styleToString` should hyphenate style name' ) ; t . equals ( styleToString ( { borderColor : [ 'blue' , 'white' , 'red' ] } ) , 'border-color:blue;border-color:white;border-color:red;' , '`styleToString` should render multiple time the same style with each values if the style value is an array' ) ; t . equals ( styleToString ( { WebkitBorderRadius : '2px' , MozBorderRadius : '2px' , msBorderRadius : '2px' } ) , '-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;' , '`styleToString` should correctly render prefixed style name' ) ; t . end ( ) ; } ) ;