From 56105fbc5027e14979304fe36cf169ddff111ae1 Mon Sep 17 00:00:00 2001 From: Anas sarkiz Date: Sat, 21 Dec 2024 21:46:19 +0200 Subject: [PATCH] formated --- tests/sch/component-wrapper.test.tsx | 4 +++- tests/sch/rotated-resistor.test.tsx | 2 +- tests/sch/trace-overlap.test.tsx | 4 +++- tests/sch/unknown-symbol.test.tsx | 3 ++- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/tests/sch/component-wrapper.test.tsx b/tests/sch/component-wrapper.test.tsx index 4fafd3c..847b93a 100644 --- a/tests/sch/component-wrapper.test.tsx +++ b/tests/sch/component-wrapper.test.tsx @@ -81,7 +81,9 @@ test("component wrapper has correct attributes", () => { circuit.render() const circuitJson = circuit.getCircuitJson() - const svg = convertCircuitJsonToSchematicSvg(circuitJson as SchematicComponent[]) + const svg = convertCircuitJsonToSchematicSvg( + circuitJson as SchematicComponent[], + ) expect(svg).toContain('data-circuit-json-type="schematic_component"') expect(svg).toContain("data-schematic-component-id") diff --git a/tests/sch/rotated-resistor.test.tsx b/tests/sch/rotated-resistor.test.tsx index 9f1e41b..b7ab22e 100644 --- a/tests/sch/rotated-resistor.test.tsx +++ b/tests/sch/rotated-resistor.test.tsx @@ -26,7 +26,7 @@ test("schematic rotated resistor", () => { ...c, symbol_name: "boxresistor_vert", } - } )as AnyCircuitElement[] + }) as AnyCircuitElement[], ), ).toMatchSvgSnapshot(import.meta.path) }) diff --git a/tests/sch/trace-overlap.test.tsx b/tests/sch/trace-overlap.test.tsx index bb05b68..b37c442 100644 --- a/tests/sch/trace-overlap.test.tsx +++ b/tests/sch/trace-overlap.test.tsx @@ -31,6 +31,8 @@ test("schematic trace overlap", () => { ) expect( - convertCircuitJsonToSchematicSvg(circuit.getCircuitJson() as AnyCircuitElement[]), + convertCircuitJsonToSchematicSvg( + circuit.getCircuitJson() as AnyCircuitElement[], + ), ).toMatchSvgSnapshot(import.meta.path) }) diff --git a/tests/sch/unknown-symbol.test.tsx b/tests/sch/unknown-symbol.test.tsx index c205c97..b48f353 100644 --- a/tests/sch/unknown-symbol.test.tsx +++ b/tests/sch/unknown-symbol.test.tsx @@ -1,4 +1,5 @@ import { test, expect } from "bun:test" +import type { AnyCircuitElement } from "circuit-json" import { convertCircuitJsonToSchematicSvg } from "lib" import { getTestFixture } from "tests/fixtures/get-test-fixture" @@ -32,7 +33,7 @@ test("schematic rotated resistor", () => { c.symbol_name = "INTENTIONALLY_NONEXISTENT_SYMBOL!!" } return c - }), + }) as AnyCircuitElement[], ), ).toMatchSvgSnapshot(import.meta.path) })