mirror of
https://github.com/marko-js/marko.git
synced 2026-01-25 15:03:04 +00:00
Cleanup tests and add assertions that all deprecated tests log warnings, and all non deprecated tests don't.
46 lines
975 B
JSON
46 lines
975 B
JSON
{
|
|
"type": "TemplateRoot",
|
|
"body": [
|
|
{
|
|
"type": "Scriptlet",
|
|
"code": " if (true) { ",
|
|
"tag": true
|
|
},
|
|
{
|
|
"type": "Text",
|
|
"argument": {
|
|
"type": "Literal",
|
|
"value": "\n HELLO\n"
|
|
}
|
|
},
|
|
{
|
|
"type": "Scriptlet",
|
|
"code": " } ",
|
|
"tag": true
|
|
},
|
|
{
|
|
"type": "Text",
|
|
"argument": {
|
|
"type": "Literal",
|
|
"value": "\n"
|
|
}
|
|
},
|
|
{
|
|
"type": "Scriptlet",
|
|
"code": " if (false) { ",
|
|
"tag": true
|
|
},
|
|
{
|
|
"type": "Text",
|
|
"argument": {
|
|
"type": "Literal",
|
|
"value": "\n WORLD\n"
|
|
}
|
|
},
|
|
{
|
|
"type": "Scriptlet",
|
|
"code": " } ",
|
|
"tag": true
|
|
}
|
|
]
|
|
} |