mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Marko v3: Added test for parseJavaScriptArgs
This commit is contained in:
parent
426ec24069
commit
7db74bf05b
18
test/fixtures/parseJavaScriptArgs/autotest/mixed/expected.json
vendored
Normal file
18
test/fixtures/parseJavaScriptArgs/autotest/mixed/expected.json
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
[
|
||||
{
|
||||
"type": "Literal",
|
||||
"value": "Hello, John"
|
||||
},
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"left": {
|
||||
"type": "Identifier",
|
||||
"name": "abc"
|
||||
},
|
||||
"operator": "+",
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"value": 123
|
||||
}
|
||||
}
|
||||
]
|
||||
1
test/fixtures/parseJavaScriptArgs/autotest/mixed/input.txt
vendored
Normal file
1
test/fixtures/parseJavaScriptArgs/autotest/mixed/input.txt
vendored
Normal file
@ -0,0 +1 @@
|
||||
"Hello, John", (abc + 123)
|
||||
Loading…
x
Reference in New Issue
Block a user