🚨(lint) update file for prettier 3.0.0

Prettier 3.0.0 comes with new standards so we need to upgrade our files
to comply with it.
This commit is contained in:
Nathan Vasse
2023-07-18 15:43:56 +02:00
committed by NathanVss
parent 5f63c2a606
commit d85f9edac8
61 changed files with 421 additions and 419 deletions

View File

@@ -35,14 +35,14 @@ describe("<Radio/>", () => {
render(<Radio label="Yes" state="success" text="Success text" />);
expect(screen.getByText("Success text")).toBeInTheDocument();
expect(
document.querySelector(".c__field.c__field--success")
document.querySelector(".c__field.c__field--success"),
).toBeInTheDocument();
});
it("should render with state=error", async () => {
render(<Radio label="Yes" state="error" text="Error text" />);
expect(screen.getByText("Error text")).toBeInTheDocument();
expect(
document.querySelector(".c__field.c__field--error")
document.querySelector(".c__field.c__field--error"),
).toBeInTheDocument();
});
it("should render with group", async () => {
@@ -50,7 +50,7 @@ describe("<Radio/>", () => {
<RadioGroup>
<Radio label="Yes" />
<Radio label="No" />
</RadioGroup>
</RadioGroup>,
);
screen.getByRole("radio", {
name: "Yes",
@@ -64,7 +64,7 @@ describe("<Radio/>", () => {
<RadioGroup>
<Radio name="agree" label="Yes" />
<Radio name="agree" label="No" />
</RadioGroup>
</RadioGroup>,
);
const user = userEvent.setup();
const yesInput: HTMLInputElement = screen.getByLabelText("Yes");
@@ -83,7 +83,7 @@ describe("<Radio/>", () => {
<RadioGroup text="Text">
<Radio label="Yes" />
<Radio label="No" />
</RadioGroup>
</RadioGroup>,
);
expect(screen.getByText("Text")).toBeInTheDocument();
});
@@ -92,11 +92,11 @@ describe("<Radio/>", () => {
<RadioGroup state="success" text="Success text">
<Radio label="Yes" />
<Radio label="No" />
</RadioGroup>
</RadioGroup>,
);
expect(screen.getByText("Success text")).toBeInTheDocument();
expect(
document.querySelector(".c__radio__group.c__field.c__field--success")
document.querySelector(".c__radio__group.c__field.c__field--success"),
).toBeInTheDocument();
});
it("should render with group state=error", async () => {
@@ -104,11 +104,11 @@ describe("<Radio/>", () => {
<RadioGroup state="error" text="Error text">
<Radio label="Yes" />
<Radio label="No" />
</RadioGroup>
</RadioGroup>,
);
expect(screen.getByText("Error text")).toBeInTheDocument();
expect(
document.querySelector(".c__radio__group.c__field.c__field--error")
document.querySelector(".c__radio__group.c__field.c__field--error"),
).toBeInTheDocument();
});
});