diff --git a/tests/__snapshots__/reference-text-core-canvas.snap.png b/tests/__snapshots__/reference-text-core-canvas.snap.png index 6c7b3c10..f77fd59a 100644 Binary files a/tests/__snapshots__/reference-text-core-canvas.snap.png and b/tests/__snapshots__/reference-text-core-canvas.snap.png differ diff --git a/tests/reference-text-core-canvas.test.tsx b/tests/reference-text-core-canvas.test.tsx index c31dcbc0..1721b9d0 100644 --- a/tests/reference-text-core-canvas.test.tsx +++ b/tests/reference-text-core-canvas.test.tsx @@ -9,7 +9,6 @@ const BOARD_WIDTH_MM = 30 const BOARD_HEIGHT_MM = 18 const CANVAS_WIDTH_PX = 1200 const CANVAS_HEIGHT_PX = 720 -const PREVIOUS_FOOTPRINTER_REFERENCE_FONT_SIZE_MM = 0.2 function getPreviewFootprintCircuitJson(footprintName: string) { switch (footprintName) { @@ -37,28 +36,14 @@ function getPreviewFootprintCircuitJson(footprintName: string) { throw new Error(`Unknown preview footprint: ${footprintName}`) } -function getPreviousPreviewFootprintCircuitJson(footprintName: string) { - return getPreviewFootprintCircuitJson(footprintName).map((element) => { - if (element.type !== "pcb_silkscreen_text") { - return element - } - - return { - ...element, - font_size: PREVIOUS_FOOTPRINTER_REFERENCE_FONT_SIZE_MM, - } - }) -} - -test("render 0.4mm reference text through Core and circuit-to-canvas", async () => { +test("render 0.6mm reference text through Core and circuit-to-canvas", async () => { const circuit = new Circuit({ platform: { schematicDisabled: true, routingDisabled: true, footprintLibraryMap: { preview: async (footprintName) => ({ - footprintCircuitJson: - getPreviousPreviewFootprintCircuitJson(footprintName), + footprintCircuitJson: getPreviewFootprintCircuitJson(footprintName), }), }, },