Skip to content

Commit

Permalink
Add test cases for more spread attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyGu committed Jan 8, 2016
1 parent 21d856e commit 59f392c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
20 changes: 19 additions & 1 deletion test/cases/attrs-spread.expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,22 @@
{"type":"attribute","line":2,"col":5,"name":"...attrs","val":"foo","mustEscape":true}
{"type":"end-attributes","line":2,"col":17}
{"type":"newline","line":3,"col":1}
{"type":"eos","line":3,"col":1}
{"type":"tag","line":3,"col":1,"val":"div"}
{"type":"start-attributes","line":3,"col":4}
{"type":"attribute","line":3,"col":5,"name":"a","val":"'bleh'","mustEscape":true}
{"type":"attribute","line":3,"col":15,"name":"...attrs","val":true,"mustEscape":false}
{"type":"end-attributes","line":3,"col":23}
{"type":"newline","line":4,"col":1}
{"type":"tag","line":4,"col":1,"val":"div"}
{"type":"start-attributes","line":4,"col":4}
{"type":"attribute","line":4,"col":5,"name":"a","val":"'bleh'","mustEscape":true}
{"type":"attribute","line":4,"col":14,"name":"...attrs","val":true,"mustEscape":false}
{"type":"end-attributes","line":4,"col":22}
{"type":"newline","line":5,"col":1}
{"type":"tag","line":5,"col":1,"val":"div"}
{"type":"start-attributes","line":5,"col":4}
{"type":"attribute","line":5,"col":5,"name":"a","val":true,"mustEscape":true}
{"type":"attribute","line":5,"col":7,"name":"...attrs","val":true,"mustEscape":false}
{"type":"end-attributes","line":5,"col":15}
{"type":"newline","line":6,"col":1}
{"type":"eos","line":6,"col":1}
3 changes: 3 additions & 0 deletions test/cases/attrs-spread.pug
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
div(...attrs)
div(...attrs=foo)
div(a='bleh', ...attrs)
div(a='bleh' ...attrs)
div(a ...attrs)

0 comments on commit 59f392c

Please sign in to comment.