Skip to content

Commit

Permalink
Added mixed fragment test content
Browse files Browse the repository at this point in the history
  • Loading branch information
WebReflection committed Jun 11, 2021
1 parent eb29598 commit 390d0f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@ const fragment = h(h, null, h("rect", {
}), h("rect", {
x: "3",
y: 4
}));
assert(fragment, '<rect x="1" y="2" /><rect x="3" y="4" />');
}), "OK");
assert(fragment, '<rect x="1" y="2" /><rect x="3" y="4" />OK');
console.log('Test: \x1b[1mOK\x1b[0m');
3 changes: 2 additions & 1 deletion test/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,13 @@ const fragment = (
<>
<rect x={1} y="2"></rect>
<rect x="3" y={4}></rect>
OK
</>
);

assert(
fragment,
'<rect x="1" y="2" /><rect x="3" y="4" />'
'<rect x="1" y="2" /><rect x="3" y="4" />OK'
);

console.log('Test: \x1b[1mOK\x1b[0m');

0 comments on commit 390d0f5

Please sign in to comment.