Skip to content

Commit

Permalink
tests: move test to the correct place
Browse files Browse the repository at this point in the history
  • Loading branch information
vohoanglong0107 committed Nov 5, 2024
1 parent 0eade7a commit 84b12b7
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
useImperativeHandle(ref, () => {
return;
}, []);
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
source: crates/biome_formatter_test/src/snapshot_builder.rs
info: js/module/expression/call_arguments.js
---
# Input

```js
useImperativeHandle(ref, () => {
return;
}, []);

```


=============================

# Outputs

## Output 1

-----
Indent style: Tab
Indent width: 2
Line ending: LF
Line width: 80
Quote style: Double Quotes
JSX quote style: Double Quotes
Quote properties: As needed
Trailing commas: All
Semicolons: Always
Arrow parentheses: Always
Bracket spacing: true
Bracket same line: false
Attribute Position: Auto
-----

```js
useImperativeHandle(ref, () => {
return;
}, []);
```
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,3 @@ expect(
bar;
}
).toThrow(ReferenceError);

useImperativeHandle(ref, () => {
return;
}, []);
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,3 @@ expect(
bar;
},
).toThrow(ReferenceError);

useImperativeHandle(ref, () => {
return;
}, []);
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ expect(
}
).toThrow(ReferenceError);

useImperativeHandle(ref, () => {
return;
}, []);

```


Expand Down Expand Up @@ -108,7 +104,7 @@ useImperativeHandle(ref, () => {
var bar = "foo";
bar;
};
@@ -28,9 +40,9 @@
@@ -28,6 +40,6 @@
() => {
var bar = "foo";
};
Expand All @@ -118,9 +114,6 @@ useImperativeHandle(ref, () => {
+bar;
+}
+).toThrow(ReferenceError)

useImperativeHandle(ref, () => {
return;
```

# Output
Expand Down Expand Up @@ -171,10 +164,6 @@ expect(
bar;
}
).toThrow(ReferenceError)

useImperativeHandle(ref, () => {
return;
}, []);
```

# Errors
Expand Down Expand Up @@ -405,7 +394,6 @@ call-arguments.js:40:3 parse ━━━━━━━━━━━━━━━━━
> 41 │ ).toThrow(ReferenceError);
│ ^^^^^^^^^^^^^^^^^^^^^^^^^
42 │
43 │ useImperativeHandle(ref, () => {
i Expected a statement here.
Expand All @@ -416,7 +404,6 @@ call-arguments.js:40:3 parse ━━━━━━━━━━━━━━━━━
> 41 │ ).toThrow(ReferenceError);
│ ^^^^^^^^^^^^^^^^^^^^^^^^^
42 │
43 │ useImperativeHandle(ref, () => {
```

0 comments on commit 84b12b7

Please sign in to comment.