Skip to content

Commit

Permalink
add test case for custom objects
Browse files Browse the repository at this point in the history
  • Loading branch information
seangenabe committed Nov 14, 2016
1 parent 43e6d7b commit 21e8f9a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,8 @@ t('should render valid HTML', t => {
let r = new Renderer()
t.is(toHTMLString(r.render(['&><'])), '&amp;&gt;&lt;')
})

t('custom object support', t => {
let r = new Renderer()
t.deepEqual(r.render([{ abc: 123 }]), [{ abc: 123 }])
})

0 comments on commit 21e8f9a

Please sign in to comment.