diff --git a/test/vomit.js b/test/vomit.js
index ec45a13..507ef15 100644
--- a/test/vomit.js
+++ b/test/vomit.js
@@ -19,3 +19,12 @@ tape('should create multiple elements', (test) => {
var section = vomit``
test.equal(section.outerHTML, '')
})
+
+
+tape('should wrap function', (test) => {
+ test.plan(1)
+ var btn = vomit(function(data) {
+ return vomit``
+ })
+ test.equal(btn('hello').outerHTML, '')
+})
\ No newline at end of file