Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
Update snapshots.
Browse files Browse the repository at this point in the history
  • Loading branch information
cpojer committed Apr 21, 2022
1 parent 848189c commit 5390c57
Show file tree
Hide file tree
Showing 111 changed files with 1,296 additions and 491 deletions.
282 changes: 259 additions & 23 deletions crates/rome_js_formatter/tests/specs/js/module/arrow/params.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -337,35 +337,181 @@ fooooooooooooooooooooooooooooooooooooooooooooooooooo(
(action) => (next) => dispatch(action),
);

foo(({ a, b }) => {});
foo(
(
{
a,
b,
},
) => {},
);

foo(({ a, b }) => {});
foo(
(
{
a,
b,
},
) => {},
);

foo(({ a, b }) => {});
foo(
(
{
a,
b,
},
) => {},
);

foo(a, ({ a, b }) => {});
foo(
a,
(
{
a,
b,
},
) => {},
);

foo(({ a, b }) => a);
foo(
(
{
a,
b,
},
) => a,
);

foo(({ a, b }) => a);
foo(
(
{
a,
b,
},
) => a,
);

foo(({ a, b }) => a);
foo(
(
{
a,
b,
},
) => a,
);

foo(({ a: { a, b } }) => {});
foo(
(
{
a: {
a,
b,
},
},
) => {},
);

foo(({ a: { b: { c, d } } }) => {});
foo(
(
{
a: {
b: {
c,
d,
},
},
},
) => {},
);

foo(({ a: { b: { c: { d, e } } } }) => {});
foo(
(
{
a: {
b: {
c: {
d,
e,
},
},
},
},
) => {},
);

foo(({ a: { a, b } }) => a);
foo(
(
{
a: {
a,
b,
},
},
) => a,
);

foo(({ a: { b: { c, d } } }) => a);
foo(
(
{
a: {
b: {
c,
d,
},
},
},
) => a,
);

foo(({ a: { b: { c: { d, e } } } }) => a);
foo(
(
{
a: {
b: {
c: {
d,
e,
},
},
},
},
) => a,
);

foo(([{ a: { b: { c: { d, e } } } }]) => {});
foo(
(
[
{
a: {
b: {
c: {
d,
e,
},
},
},
},
],
) => {},
);

foo(([...{ a: { b: { c: { d, e } } } }]) => {});
foo(
(
[
...{
a: {
b: {
c: {
d,
e,
},
},
},
}
],
) => {},
);

foo(
(
Expand All @@ -383,7 +529,18 @@ foo(
) => {},
);

foo(({ x: [{ a, b }] }) => {});
foo(
(
{
x: [
{
a,
b,
},
],
},
) => {},
);

foo(
(
Expand All @@ -397,15 +554,74 @@ foo(
) => a,
);

foo(([[{ a, b }]]) => {});
foo(
(
[
[
{
a,
b,
},
],
],
) => {},
);

foo(([[[[{ a, b: { c, d: { e, f } } }]]]]) => {});
foo(
(
[
[
[
[
{
a,
b: {
c,
d: {
e,
f,
},
},
},
],
],
],
],
) => {},
);

foo((...{ a, b }) => {});
foo(
(
...{
a,
b,
}
) => {},
);

foo((...[{ a, b }]) => {});
foo(
(
...[
{
a,
b,
},
]
) => {},
);

foo(([...[{ a, b }]]) => {});
foo(
(
[
...[
{
a,
b,
},
]
],
) => {},
);

foo(
(
Expand All @@ -419,7 +635,18 @@ foo(
) => {},
);

foo((a = (({ a, b }) => {})()) => {});
foo(
(
a = (
(
{
a,
b,
},
) => {}
)(),
) => {},
);

foo(
(
Expand All @@ -431,7 +658,16 @@ foo(
) => {},
);

foo((a = ({ a, b }) => {}) => {});
foo(
(
a = (
{
a,
b,
},
) => {},
) => {},
);

foo(
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ import "very_long_import_very_long_import_very_long_import_very_long_import_very
import "very_long_import_very_long_import_very_long_import_very_long_import_very_long_import_very_long" assert {
type: "json",
};
import "short" assert { type: "json" };
import "short" assert {
type: "json",
};

import "very_long_import_very_long_import_very" assert {
// something good is here
Expand All @@ -56,5 +58,5 @@ import "very_long_import_very_long_import_very" assert {

1: import "very_long_import_very_long_import_very_long_import_very_long_import_very_long_import_very_long_import_very_long_import_";
2: import "very_long_import_very_long_import_very_long_import_very_long_import_very_long_import_very_long" assert {
18: "typetypetypetypetypetypetypetypetypetypetype": "typetypetypetypetypetypetypetypetypetypetypetypetypetype", /****/
20: "typetypetypetypetypetypetypetypetypetypetype": "typetypetypetypetypetypetypetypetypetypetypetypetypetype", /****/

Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ import hey from "hey";
import "x" assert { type: "json" };
import "foo" assert { "type": "json" };
import foo from "foo.json" assert { type: "json" };
import foo from "foo.json" assert { type: "json" };
import foo from "foo.json" assert {
type: "json",
};
import foo2 from "foo.json" assert {
"type": "json",
type: "html",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,16 @@ let a = {
...spread,
}

const x = {apple: "banana"}
const x = {apple: "banana"};

const y = {
apple: "banana",
}
};

({a, b, c} = {a: 'apple', b: 'banana', c: 'coconut'});

({
a, b, c} = {a: 'apple', b: 'banana', c: 'coconut'});
=============================
# Outputs
## Output 1
Expand Down Expand Up @@ -65,3 +69,13 @@ const y = {
apple: "banana",
};

({ a, b, c } = { a: "apple", b: "banana", c: "coconut" });

(
{
a,
b,
c,
} = { a: "apple", b: "banana", c: "coconut" }
);

Loading

0 comments on commit 5390c57

Please sign in to comment.