Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit d3dcd85

Browse files
committed
rename .react.res to just .res
1 parent 8a7a1bd commit d3dcd85

File tree

5 files changed

+11
-12
lines changed

5 files changed

+11
-12
lines changed

tests/printer/reactJsx/__snapshots__/render.spec.js.snap

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`commentAtTop.react.res 1`] = `
3+
exports[`commentAtTop.res 1`] = `
44
"@bs.obj
55
external makeProps: (~msg: 'msg, ~key: string=?, unit) => {\\"msg\\": 'msg} = \\"\\" // test React JSX file
66
@@ -9,14 +9,13 @@ let make =
99
ReactDOMRe.createDOMElementVariadic(\\"div\\", [{msg->React.string}])
1010
}
1111
let make = {
12-
let \\\\\\"CommentAtTop.react\\" = (\\\\\\"Props\\": {\\"msg\\": 'msg}) =>
13-
make(~msg=\\\\\\"Props\\"[\\"msg\\"])
14-
\\\\\\"CommentAtTop.react\\"
12+
let \\\\\\"CommentAtTop\\" = (\\\\\\"Props\\": {\\"msg\\": 'msg}) => make(~msg=\\\\\\"Props\\"[\\"msg\\"])
13+
\\\\\\"CommentAtTop\\"
1514
}
1615
"
1716
`;
1817
19-
exports[`innerModule.react.res 1`] = `
18+
exports[`innerModule.res 1`] = `
2019
"module Bar = {
2120
@bs.obj
2221
external makeProps: (
@@ -31,9 +30,9 @@ exports[`innerModule.react.res 1`] = `
3130
ReactDOMRe.createDOMElementVariadic(\\"div\\", [])
3231
}
3332
let make = {
34-
let \\\\\\"InnerModule.react$Bar\\" = (\\\\\\"Props\\": {\\"a\\": 'a, \\"b\\": 'b}) =>
33+
let \\\\\\"InnerModule$Bar\\" = (\\\\\\"Props\\": {\\"a\\": 'a, \\"b\\": 'b}) =>
3534
make(~b=\\\\\\"Props\\"[\\"b\\"], ~a=\\\\\\"Props\\"[\\"a\\"], ())
36-
\\\\\\"InnerModule.react$Bar\\"
35+
\\\\\\"InnerModule$Bar\\"
3736
}
3837
@bs.obj
3938
external componentProps: (
@@ -49,15 +48,15 @@ exports[`innerModule.react.res 1`] = `
4948
ReactDOMRe.createDOMElementVariadic(\\"div\\", [])
5049
}
5150
let component = {
52-
let \\\\\\"InnerModule.react$Bar$component\\" = (\\\\\\"Props\\": {\\"a\\": 'a, \\"b\\": 'b}) =>
51+
let \\\\\\"InnerModule$Bar$component\\" = (\\\\\\"Props\\": {\\"a\\": 'a, \\"b\\": 'b}) =>
5352
component(~b=\\\\\\"Props\\"[\\"b\\"], ~a=\\\\\\"Props\\"[\\"a\\"], ())
54-
\\\\\\"InnerModule.react$Bar$component\\"
53+
\\\\\\"InnerModule$Bar$component\\"
5554
}
5655
}
5756
"
5857
`;
5958
60-
exports[`topLevel.react.res 1`] = `
59+
exports[`topLevel.res 1`] = `
6160
"@bs.obj
6261
external makeProps: (
6362
~a: 'a,
@@ -71,9 +70,9 @@ let make =
7170
ReactDOMRe.createDOMElementVariadic(\\"div\\", [])
7271
}
7372
let make = {
74-
let \\\\\\"TopLevel.react\\" = (\\\\\\"Props\\": {\\"a\\": 'a, \\"b\\": 'b}) =>
73+
let \\\\\\"TopLevel\\" = (\\\\\\"Props\\": {\\"a\\": 'a, \\"b\\": 'b}) =>
7574
make(~b=\\\\\\"Props\\"[\\"b\\"], ~a=\\\\\\"Props\\"[\\"a\\"], ())
76-
\\\\\\"TopLevel.react\\"
75+
\\\\\\"TopLevel\\"
7776
}
7877
"
7978
`;

0 commit comments

Comments
 (0)