Skip to content

Commit d50570d

Browse files
committed
Update tests
1 parent 4da9a31 commit d50570d

File tree

4 files changed

+23
-16
lines changed

4 files changed

+23
-16
lines changed

tests/syntax_tests/data/ast-mapping/expected/JSXElements.res.txt

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,9 @@ let emptyUnary = ReactDOM.jsx("input", {})
22

33
let emptyNonunary = ReactDOM.jsx("div", {})
44

5-
let emptyUnaryWithAttributes = ReactDOM.jsx(
6-
"input",
7-
{
8-
type_: "text",
9-
},
10-
)
5+
let emptyUnaryWithAttributes = ReactDOM.jsx("input", {type_: "text"})
116

12-
let emptyNonunaryWithAttributes = ReactDOM.jsx(
13-
"div",
14-
{
15-
className: "container",
16-
},
17-
)
7+
let emptyNonunaryWithAttributes = ReactDOM.jsx("div", {className: "container"})
188

199
let elementWithChildren = ReactDOM.jsxs(
2010
"div",

tests/syntax_tests/data/printer/comments/expected/expr.res.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,7 @@ let user = /* before */ {
121121
/* c4 */ "age" /* c5 */: /* c6 */ 31 /* c7 */,
122122
} // after
123123

124-
let spreadUser = {
125-
/* before */ ...user1 /* after */,
126-
/* c0 */ age /* c1 */: /* c2 */ 32 /* c3 */,
127-
}
124+
let spreadUser = {/* before */ ...user1 /* after */, /* c0 */ age /* c1 */: /* c2 */ 32 /* c3 */}
128125

129126
// Pexp_field
130127
let x = /* before */ user /* c0 */./* c1 */ name /* c2 */

tests/syntax_tests/data/printer/expr/expected/record.res.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,15 @@ let optParen = {x: 3, y: ?foo(bar)}
103103
let optParen = {x: 3, y: ?(foo->bar)}
104104
let optParen = {x: 3, y: ?(() => 3)}
105105
let optParen = {x: 3, y: ?-3}
106+
107+
let x = {a: 2}
108+
let x = {
109+
a: 2,
110+
bbbbbbbbbbbbbbbbbbbbb: 22222222222,
111+
ccccccccccccccccccccc: 22222222222222222,
112+
ddddddddddddddddddddd: 2222222222222,
113+
}
114+
let x = {a: 2}
115+
let x = {
116+
a: 2,
117+
}

tests/syntax_tests/data/printer/expr/record.res

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,11 @@ let optParen = { x:3, y: ? (foo(bar)) }
9393
let optParen = { x:3, y: ? (foo->bar) }
9494
let optParen = { x:3, y: ? (()=>3) }
9595
let optParen = { x:3, y: ? (-3) }
96+
97+
let x = {a: 2}
98+
let x = {a: 2, bbbbbbbbbbbbbbbbbbbbb: 22222222222, ccccccccccccccccccccc: 22222222222222222, ddddddddddddddddddddd: 2222222222222}
99+
let x = {a: 2
100+
}
101+
let x = {
102+
a: 2
103+
}

0 commit comments

Comments
 (0)