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

Commit

Permalink
Revert "unchanged" snapshot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaReiser committed May 13, 2022
1 parent 1daa97f commit cf41f8f
Show file tree
Hide file tree
Showing 21 changed files with 39 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ Quote style: Double Quotes
-----
client.execute(
Post.selectAll()
.where(Post.id.eq(42))
.where(Post.published.eq(true)),
.where(Post.id.eq(42)).where(Post.published.eq(true)),
);

Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ Line width: 80
Quote style: Double Quotes
-----
nock(/test/)
.matchHeader("Accept", "application/json")[httpMethodNock(method)]("/foo")
.reply(200, { foo: "bar" });
.matchHeader("Accept", "application/json")[httpMethodNock(method)]("/foo").reply(
200,
{ foo: "bar" },
);


## Lines exceeding width of 80 characters

2: .matchHeader("Accept", "application/json")[httpMethodNock(method)]("/foo").reply(

Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ new Test()
# Output
```js
new Test()
.test()
.test([, 0])
.test();
.test().test([, 0]).test();
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ async function f() {
const admins = (
await (
db
.select("*")
.from("admins")
.leftJoin("bla")
.where("id", "in", [1, 2, 3, 4])
.select("*").from("admins").leftJoin("bla").where(
"id",
"in",
[1, 2, 3, 4],
)
)
).map(({ id, name }) => ({ id, name }));
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: crates/rome_js_formatter/tests/prettier_tests.rs
assertion_line: 175
expression: issues.js
---
# Input
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
source: crates/rome_js_formatter/tests/prettier_tests.rs
assertion_line: 125
expression: pipe-function-calls-with-comments.js

---
# Input
```js
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
source: crates/rome_js_formatter/tests/prettier_tests.rs
assertion_line: 125
expression: pipe-function-calls.js

---
# Input
```js
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: crates/rome_js_formatter/tests/prettier_tests.rs
assertion_line: 175
expression: arrow.js
---
# Input
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: crates/rome_js_formatter/tests/prettier_tests.rs
assertion_line: 175
expression: expand.js
---
# Input
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: crates/rome_js_formatter/tests/prettier_tests.rs
assertion_line: 175
expression: complex-args.js
---
# Input
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: crates/rome_js_formatter/tests/prettier_tests.rs
assertion_line: 175
expression: computed-merge.js
---
# Input
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: crates/rome_js_formatter/tests/prettier_tests.rs
assertion_line: 175
expression: computed.js
---
# Input
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: crates/rome_js_formatter/tests/prettier_tests.rs
assertion_line: 175
expression: d3.js
---
# Input
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: crates/rome_js_formatter/tests/prettier_tests.rs
assertion_line: 175
expression: issue-3594.js
---
# Input
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
source: crates/rome_js_formatter/tests/prettier_tests.rs
assertion_line: 125
expression: object-literal.js

---
# Input
```js
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: crates/rome_js_formatter/tests/prettier_tests.rs
assertion_line: 175
expression: short-names.js
---
# Input
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: crates/rome_js_formatter/tests/prettier_tests.rs
assertion_line: 175
expression: square_0.js
---
# Input
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: crates/rome_js_formatter/tests/prettier_tests.rs
assertion_line: 175
expression: expressions.js
---
# Input
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
source: crates/rome_js_formatter/tests/prettier_tests.rs
assertion_line: 57
expression: function-calls.js

---
# Input
```js
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
source: crates/rome_js_formatter/tests/prettier_tests.rs
assertion_line: 125
expression: pipe-function-calls-with-comments.ts

---
# Input
```js
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
source: crates/rome_js_formatter/tests/prettier_tests.rs
assertion_line: 125
expression: pipe-function-calls.ts

---
# Input
```js
Expand Down

0 comments on commit cf41f8f

Please sign in to comment.