#1080 parse pattern attribute correctly
This commit is contained in:
parent
b128fd8232
commit
80349b3c74
4 changed files with 10 additions and 6 deletions
|
|
@ -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"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue