Skip to content

Commit 10de907

Browse files
committed
test: add tests for auto-deletion
Signed-off-by: Snehil Shah <[email protected]>
1 parent ff0a086 commit 10de907

13 files changed

+451
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"expression": "'[]'",
3+
"cursor": 1,
4+
"ast": {
5+
"type": "Program",
6+
"start": 0,
7+
"end": 4,
8+
"body": [
9+
{
10+
"type": "ExpressionStatement",
11+
"start": 0,
12+
"end": 4,
13+
"expression": {
14+
"type": "Literal",
15+
"start": 0,
16+
"end": 4,
17+
"value": "[]",
18+
"raw": "'[]'"
19+
},
20+
"directive": "[]"
21+
}
22+
],
23+
"sourceType": "script"
24+
}
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"expression": "'``'",
3+
"cursor": 1,
4+
"ast": {
5+
"type": "Program",
6+
"start": 0,
7+
"end": 4,
8+
"body": [
9+
{
10+
"type": "ExpressionStatement",
11+
"start": 0,
12+
"end": 4,
13+
"expression": {
14+
"type": "Literal",
15+
"start": 0,
16+
"end": 4,
17+
"value": "``",
18+
"raw": "'``'"
19+
},
20+
"directive": "``"
21+
}
22+
],
23+
"sourceType": "script"
24+
}
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"expression": "'\"\"'",
3+
"cursor": 1,
4+
"ast": {
5+
"type": "Program",
6+
"start": 0,
7+
"end": 4,
8+
"body": [
9+
{
10+
"type": "ExpressionStatement",
11+
"start": 0,
12+
"end": 4,
13+
"expression": {
14+
"type": "Literal",
15+
"start": 0,
16+
"end": 4,
17+
"value": "\"\"",
18+
"raw": "'\"\"'"
19+
},
20+
"directive": "\"\""
21+
}
22+
],
23+
"sourceType": "script"
24+
}
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"expression": "'()'",
3+
"cursor": 1,
4+
"ast": {
5+
"type": "Program",
6+
"start": 0,
7+
"end": 4,
8+
"body": [
9+
{
10+
"type": "ExpressionStatement",
11+
"start": 0,
12+
"end": 4,
13+
"expression": {
14+
"type": "Literal",
15+
"start": 0,
16+
"end": 4,
17+
"value": "()",
18+
"raw": "'()'"
19+
},
20+
"directive": "()"
21+
}
22+
],
23+
"sourceType": "script"
24+
}
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"expression": "\"''\"",
3+
"cursor": 1,
4+
"ast": {
5+
"type": "Program",
6+
"start": 0,
7+
"end": 2,
8+
"body": [
9+
{
10+
"type": "ExpressionStatement",
11+
"start": 0,
12+
"end": 4,
13+
"expression": {
14+
"type": "Literal",
15+
"start": 0,
16+
"end": 4,
17+
"value": "''",
18+
"raw": "\"''\""
19+
},
20+
"directive": "''"
21+
}
22+
],
23+
"sourceType": "script"
24+
}
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"expression": "'{}'",
3+
"cursor": 1,
4+
"ast": {
5+
"type": "Program",
6+
"start": 0,
7+
"end": 4,
8+
"body": [
9+
{
10+
"type": "ExpressionStatement",
11+
"start": 0,
12+
"end": 4,
13+
"expression": {
14+
"type": "Literal",
15+
"start": 0,
16+
"end": 4,
17+
"value": "{}",
18+
"raw": "'{}'"
19+
},
20+
"directive": "{}"
21+
}
22+
],
23+
"sourceType": "script"
24+
}
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"expression": "[]",
3+
"cursor": 1,
4+
"ast": {
5+
"type": "Program",
6+
"start": 0,
7+
"end": 2,
8+
"body": [
9+
{
10+
"type": "ExpressionStatement",
11+
"start": 0,
12+
"end": 2,
13+
"expression": {
14+
"type": "ArrayExpression",
15+
"start": 0,
16+
"end": 2,
17+
"elements": []
18+
}
19+
}
20+
],
21+
"sourceType": "script"
22+
}
23+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"expression": "``",
3+
"cursor": 1,
4+
"ast": {
5+
"type": "Program",
6+
"start": 0,
7+
"end": 2,
8+
"body": [
9+
{
10+
"type": "ExpressionStatement",
11+
"start": 0,
12+
"end": 2,
13+
"expression": {
14+
"type": "TemplateLiteral",
15+
"start": 0,
16+
"end": 2,
17+
"expressions": [],
18+
"quasis": [
19+
{
20+
"type": "TemplateElement",
21+
"start": 1,
22+
"end": 1,
23+
"value": {
24+
"raw": "",
25+
"cooked": ""
26+
},
27+
"tail": true
28+
}
29+
]
30+
}
31+
}
32+
],
33+
"sourceType": "script"
34+
}
35+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"expression": "\"\"",
3+
"cursor": 1,
4+
"ast": {
5+
"type": "Program",
6+
"start": 0,
7+
"end": 2,
8+
"body": [
9+
{
10+
"type": "ExpressionStatement",
11+
"start": 0,
12+
"end": 2,
13+
"expression": {
14+
"type": "Literal",
15+
"start": 0,
16+
"end": 2,
17+
"value": "",
18+
"raw": "\"\""
19+
},
20+
"directive": ""
21+
}
22+
],
23+
"sourceType": "script"
24+
}
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"expression": "()",
3+
"cursor": 1,
4+
"ast": {
5+
"type": "Program",
6+
"start": 0,
7+
"end": 2,
8+
"body": [
9+
{
10+
"type": "EmptyStatement",
11+
"start": 0,
12+
"end": 2
13+
}
14+
],
15+
"sourceType": "script"
16+
}
17+
}

0 commit comments

Comments
 (0)