Add tests

This commit is contained in:
Behind The Math
2018-03-20 18:45:56 -04:00
parent f3dd755a97
commit 39a96e51e7
7 changed files with 236 additions and 0 deletions

View File

@@ -18,5 +18,10 @@ tape("test parse element prototype method", function(t) {
parseElement.call(pjax, form)
}, "<form> element can be parsed")
t.throws(function() {
var el = document.createElement("div")
parseElement.call(pjax, el)
}, "<div> element cannot be parsed")
t.end()
})