#1080 parse pattern attribute correctly

This commit is contained in:
Leo Horie 2016-06-01 15:42:08 -04:00
parent b128fd8232
commit 80349b3c74
4 changed files with 10 additions and 6 deletions

View file

@ -48,6 +48,9 @@ describe("m()", function () {
it("sets correct double quoted attr", function () {
expect(m("[title=\"bar\"]")).to.have.deep.property("attrs.title", "bar")
})
it("sets pattern attr", function () {
expect(m("[pattern=\"[a-zA-Z0-9]{56}\"]")).to.have.deep.property("attrs.pattern", "[a-zA-Z0-9]{56}")
})
it("sets correct children with 1 string arg", function () {
expect(m("div", "test"))