mithril-node-render
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -32,2 +32,5 @@ 'use strict' | ||
function toStyleKey(str) { | ||
if (str[0] === '-' && str[1] === '-') { | ||
return str | ||
} | ||
return str | ||
@@ -34,0 +37,0 @@ .replace(/\W+/g, '-') |
{ | ||
"name": "mithril-node-render", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Node rending of mithril views", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -88,2 +88,10 @@ 'use strict' | ||
o('should respect css vars', () => { | ||
o( | ||
render.sync( | ||
m('span', { style: { '--some-var': '10px', '--someVar': 'red' } }) | ||
) | ||
).equals('<span style="--some-var:10px;--someVar:red"></span>') | ||
}) | ||
o('should render numbers as text nodes', () => { | ||
@@ -90,0 +98,0 @@ o(render.sync(m('div', [1, m('span'), '2']))).equals( |
Sorry, the diff of this file is not supported yet
31668
862