From 21e8f9a840db4b4350aa663f975bd54d2065f729 Mon Sep 17 00:00:00 2001 From: Sean Genabe Date: Tue, 15 Nov 2016 01:42:15 +0800 Subject: [PATCH] add test case for custom objects --- test/renderer.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/renderer.js b/test/renderer.js index 258b6ca..6c6b30a 100644 --- a/test/renderer.js +++ b/test/renderer.js @@ -41,3 +41,8 @@ t('should render valid HTML', t => { let r = new Renderer() t.is(toHTMLString(r.render(['&><'])), '&><') }) + +t('custom object support', t => { + let r = new Renderer() + t.deepEqual(r.render([{ abc: 123 }]), [{ abc: 123 }]) +})