Relocate all the things
This commit is contained in:
18
tests/lib/proto/parse-element.js
Normal file
18
tests/lib/proto/parse-element.js
Normal file
@@ -0,0 +1,18 @@
|
||||
var tape = require("tape")
|
||||
|
||||
var parseElement = require("../../../lib/proto/parse-element")
|
||||
var protoMock = {attachLink: function() { return true}}
|
||||
tape("test parse element prototype method", function(t) {
|
||||
|
||||
t.doesNotThrow(function() {
|
||||
var a = document.createElement("a")
|
||||
parseElement.call(protoMock, a)
|
||||
}, "<a> element can be parsed")
|
||||
|
||||
t.throws(function() {
|
||||
var form = document.createElement("form")
|
||||
parseElement.call(protoMock, form)
|
||||
}, "<form> cannot be used (for now)")
|
||||
|
||||
t.end()
|
||||
})
|
||||
Reference in New Issue
Block a user