Empty attributes. Fixes #971
This commit is contained in:
parent
791c94a0b1
commit
ea946f1a0e
3 changed files with 6 additions and 1 deletions
|
|
@ -37,6 +37,10 @@ describe("m()", function () {
|
|||
expect(m("[title=bar]")).to.have.deep.property("attrs.title", "bar")
|
||||
})
|
||||
|
||||
it("sets attr without a value as an empty string", function () {
|
||||
expect(m("[empty]")).to.have.deep.property("attrs.empty", "")
|
||||
})
|
||||
|
||||
it("sets correct single quoted attr", function () {
|
||||
expect(m("[title=\'bar\']")).to.have.deep.property("attrs.title", "bar")
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue