Skip to content

Commit

Permalink
check if the third test call is appropriate
Browse files Browse the repository at this point in the history
  • Loading branch information
TaKO8Ki committed Nov 18, 2023
1 parent 0149819 commit 90b8c62
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 19 deletions.
2 changes: 1 addition & 1 deletion crates/biome_js_formatter/src/utils/test_call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ fn contains_a_test_pattern(callee: &AnyJsExpression) -> SyntaxResult<bool> {
Some("only" | "skip" | "step") => third.is_none(),
Some("describe") => match third {
None => true,
Some("only") => true,
Some("only") => fourth.is_none(),
Some("parallel" | "serial") => match fourth {
None => true,
Some("only") => fifth.is_none(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,18 +223,6 @@ it(

// Should break

@@ -152,10 +142,7 @@
() => {},
);

-test.describe.only.parallel(
- "does something really long and complicated so I have to write a very long name for the test",
- () => {},
-);
+test.describe.only.parallel("does something really long and complicated so I have to write a very long name for the test", () => {});

test.describe.parallel.serial(
"does something really long and complicated so I have to write a very long name for the testThis is a very",
```

# Output
Expand Down Expand Up @@ -384,7 +372,10 @@ xskip(
() => {},
);

test.describe.only.parallel("does something really long and complicated so I have to write a very long name for the test", () => {});
test.describe.only.parallel(
"does something really long and complicated so I have to write a very long name for the test",
() => {},
);

test.describe.parallel.serial(
"does something really long and complicated so I have to write a very long name for the testThis is a very",
Expand Down Expand Up @@ -470,11 +461,11 @@ it(
127: "does something really long and complicated so I have to write a very long name for the test",
134: "does something really long and complicated so I have to write a very long name for the test",
141: "does something really long and complicated so I have to write a very long name for the test",
145: test.describe.only.parallel("does something really long and complicated so I have to write a very long name for the test", () => {});
148: "does something really long and complicated so I have to write a very long name for the testThis is a very",
153: "does something really long and complicated so I have to write a very long name for the test",
158: "does something really long and complicated so I have to write a very long name for the test",
167: does something really long and complicated so I have to write a very long name for the test`, () => {
146: "does something really long and complicated so I have to write a very long name for the test",
151: "does something really long and complicated so I have to write a very long name for the testThis is a very",
156: "does something really long and complicated so I have to write a very long name for the test",
161: "does something really long and complicated so I have to write a very long name for the test",
170: does something really long and complicated so I have to write a very long name for the test`, () => {
```


0 comments on commit 90b8c62

Please sign in to comment.