Skip to content

Commit 50b04cd

Browse files
committed
Update hast-to-hyperscript
1 parent 039e0b5 commit 50b04cd

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
],
2121
"dependencies": {
2222
"has": "^1.0.1",
23-
"hast-to-hyperscript": "^2.0.3",
23+
"hast-to-hyperscript": "^3.0.0",
2424
"mapz": "^1.0.0",
2525
"web-namespaces": "^1.0.0",
2626
"xtend": "^4.0.1",

test/element.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ test('element', function (t) {
5959
type: 'element',
6060
tagName: 'svg',
6161
properties: {
62-
width: 230,
63-
height: 120,
62+
width: '230',
63+
height: '120',
6464
xmlns: 'http://www.w3.org/2000/svg',
6565
'xmlns:xlink': 'http://www.w3.org/1999/xlink'
6666
},
@@ -69,9 +69,9 @@ test('element', function (t) {
6969
type: 'element',
7070
tagName: 'circle',
7171
properties: {
72-
cx: 60,
73-
cy: 60,
74-
r: 50,
72+
cx: '60',
73+
cy: '60',
74+
r: '50',
7575
fill: 'red'
7676
},
7777
children: []
@@ -80,9 +80,9 @@ test('element', function (t) {
8080
type: 'element',
8181
tagName: 'circle',
8282
properties: {
83-
cx: 170,
84-
cy: 60,
85-
r: 50,
83+
cx: '170',
84+
cy: '60',
85+
r: '50',
8686
fill: 'green'
8787
},
8888
children: []

0 commit comments

Comments
 (0)