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

Commit

Permalink
fix cli snap test
Browse files Browse the repository at this point in the history
  • Loading branch information
xunilrj committed Aug 11, 2022
1 parent 594ecd0 commit c6ce7e5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion crates/rome_cli/tests/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ if(a != 0) {}

const APPLY_SUGGESTED_BEFORE: &str = "let a = 4;
debugger;
console.log(a);
";

const APPLY_SUGGESTED_AFTER: &str = "let a = 4;\n";
const APPLY_SUGGESTED_AFTER: &str = "let a = 4;\nconsole.log(a);\n";

const CUSTOM_FORMAT_BEFORE: &str = r#"
function f() {
Expand Down
2 changes: 1 addition & 1 deletion crates/rome_cli/tests/snapshots/apply_suggested.snap
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
source: crates/rome_cli/tests/snap_test.rs
assertion_line: 107
expression: content
---
## `fix.js`

```js
let a = 4;
console.log(a);

```

Expand Down
2 changes: 1 addition & 1 deletion crates/rome_cli/tests/snapshots/apply_suggested_error.snap
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
source: crates/rome_cli/tests/snap_test.rs
assertion_line: 107
expression: content
---
## `fix.js`

```js
let a = 4;
debugger;
console.log(a);

```

Expand Down

0 comments on commit c6ce7e5

Please sign in to comment.