Skip to content

Commit

Permalink
Add test case for "...attr" as attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyGu committed Jan 14, 2016
1 parent faccb63 commit ebe6467
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/cases/attrs-spread.expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,11 @@
{"type":"spread-attribute","line":7,"col":5,"val":"attrs","mustEscape":false}
{"type":"end-attributes","line":9,"col":7}
{"type":"newline","line":10,"col":1}
{"type":"eos","line":10,"col":1}
{"type":"tag","line":10,"col":1,"val":"div"}
{"type":"start-attributes","line":10,"col":4}
{"type":"attribute","line":10,"col":5,"name":"...attrs","val":true,"mustEscape":true}
{"type":"spread-attribute","line":10,"col":16,"val":"attrs","mustEscape":true}
{"type":"attribute","line":10,"col":26,"name":"...attrs","val":"'val'","mustEscape":true}
{"type":"end-attributes","line":10,"col":43}
{"type":"newline","line":11,"col":1}
{"type":"eos","line":11,"col":1}
1 change: 1 addition & 0 deletions test/cases/attrs-spread.pug
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ div(...!attrs)
div(...
!
attrs)
div("...attrs" ...attrs, '...attrs' ='val')

0 comments on commit ebe6467

Please sign in to comment.