Skip to content

Commit

Permalink
Update: update acorn-jsx and fix failing test (#432)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaicataldo authored Mar 2, 2020
1 parent acb8776 commit ced1b68
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 55 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"license": "BSD-2-Clause",
"dependencies": {
"acorn": "^7.1.0",
"acorn-jsx": "^5.1.0",
"acorn-jsx": "^5.2.0",
"eslint-visitor-keys": "^1.1.0"
},
"devDependencies": {
Expand Down
106 changes: 53 additions & 53 deletions tests/fixtures/ecma-features/jsx/embedded-tags.result.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ module.exports = {
},
"end": {
"line": 1,
"column": 58
"column": 61
}
},
"range": [
0,
58
61
],
"body": [
{
Expand All @@ -24,12 +24,12 @@ module.exports = {
},
"end": {
"line": 1,
"column": 58
"column": 61
}
},
"range": [
0,
58
61
],
"expression": {
"type": "JSXElement",
Expand All @@ -40,12 +40,12 @@ module.exports = {
},
"end": {
"line": 1,
"column": 57
"column": 60
}
},
"range": [
0,
57
60
],
"openingElement": {
"type": "JSXOpeningElement",
Expand All @@ -56,12 +56,12 @@ module.exports = {
},
"end": {
"line": 1,
"column": 57
"column": 60
}
},
"range": [
0,
57
60
],
"attributes": [
{
Expand Down Expand Up @@ -164,12 +164,12 @@ module.exports = {
},
"end": {
"line": 1,
"column": 54
"column": 57
}
},
"range": [
22,
54
57
],
"name": {
"type": "JSXIdentifier",
Expand Down Expand Up @@ -198,12 +198,12 @@ module.exports = {
},
"end": {
"line": 1,
"column": 54
"column": 57
}
},
"range": [
28,
54
57
],
"openingElement": {
"type": "JSXOpeningElement",
Expand Down Expand Up @@ -247,32 +247,32 @@ module.exports = {
"loc": {
"start": {
"line": 1,
"column": 50
"column": 53
},
"end": {
"line": 1,
"column": 54
"column": 57
}
},
"range": [
50,
54
53,
57
],
"name": {
"type": "JSXIdentifier",
"loc": {
"start": {
"line": 1,
"column": 52
"column": 55
},
"end": {
"line": 1,
"column": 53
"column": 56
}
},
"range": [
52,
53
55,
56
],
"name": "b"
}
Expand All @@ -287,15 +287,15 @@ module.exports = {
},
"end": {
"line": 1,
"column": 50
"column": 53
}
},
"range": [
31,
50
53
],
"value": "monkeys /> gorillas",
"raw": "monkeys /> gorillas"
"raw": "monkeys /> gorillas"
}
]
}
Expand Down Expand Up @@ -572,12 +572,12 @@ module.exports = {
},
"end": {
"line": 1,
"column": 50
"column": 53
}
},
"range": [
31,
50
53
]
},
{
Expand All @@ -586,16 +586,16 @@ module.exports = {
"loc": {
"start": {
"line": 1,
"column": 50
"column": 53
},
"end": {
"line": 1,
"column": 51
"column": 54
}
},
"range": [
50,
51
53,
54
]
},
{
Expand All @@ -604,16 +604,16 @@ module.exports = {
"loc": {
"start": {
"line": 1,
"column": 51
"column": 54
},
"end": {
"line": 1,
"column": 52
"column": 55
}
},
"range": [
51,
52
54,
55
]
},
{
Expand All @@ -622,16 +622,16 @@ module.exports = {
"loc": {
"start": {
"line": 1,
"column": 52
"column": 55
},
"end": {
"line": 1,
"column": 53
"column": 56
}
},
"range": [
52,
53
55,
56
]
},
{
Expand All @@ -640,16 +640,16 @@ module.exports = {
"loc": {
"start": {
"line": 1,
"column": 53
"column": 56
},
"end": {
"line": 1,
"column": 54
"column": 57
}
},
"range": [
53,
54
56,
57
]
},
{
Expand All @@ -658,16 +658,16 @@ module.exports = {
"loc": {
"start": {
"line": 1,
"column": 55
"column": 58
},
"end": {
"line": 1,
"column": 56
"column": 59
}
},
"range": [
55,
56
58,
59
]
},
{
Expand All @@ -676,16 +676,16 @@ module.exports = {
"loc": {
"start": {
"line": 1,
"column": 56
"column": 59
},
"end": {
"line": 1,
"column": 57
"column": 60
}
},
"range": [
56,
57
59,
60
]
},
{
Expand All @@ -694,16 +694,16 @@ module.exports = {
"loc": {
"start": {
"line": 1,
"column": 57
"column": 60
},
"end": {
"line": 1,
"column": 58
"column": 61
}
},
"range": [
57,
58
60,
61
]
}
]
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/ecma-features/jsx/embedded-tags.src.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<LeftRight left=<a /> right=<b>monkeys /> gorillas</b> />;
<LeftRight left=<a /> right=<b>monkeys /&gt; gorillas</b> />;

0 comments on commit ced1b68

Please sign in to comment.