UNPKG
stylon
Version:
latest (0.0.1)
0.0.1
JSON to DOM style attribute
github.com/bredele/stylon
bredele/stylon
stylon
/
test
/
stylon.js
16 lines
(12 loc)
•
242 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/** * Test dependencies. */
var
test =
require
(
'tape'
);
var
styles =
require
(
'..'
);
test
(
'simple object to styles'
, function (t) { t.
plan
(
1
); t.
equal
(
styles
({
top
:
100
+
'px'
,
left
:
0
+
'px'
}),
'top:100px;left:0px;'
); });