Skip to content

normalize pin labels #176

normalize pin labels

normalize pin labels #176

Triggered via pull request October 30, 2024 18:16
Status Failure
Total duration 19s
Artifacts

test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 2 warnings
error: expect(received).toContain(expected): tests/convert-to-ts/C88224-to-ts.test.ts#L17
Expected to contain: "\"13\": \"pin13\"" Received: "import { createUseComponent } from \"@tscircuit/core\"\nimport type { CommonLayoutProps } from \"@tscircuit/props\"\n\nconst pinLabels = {\n \"1\": [\n \"pin1\",\n \"AO11\"\n ],\n \"2\": [\n \"pin2\",\n \"AO12\"\n ],\n \"3\": [\n \"pin3\",\n \"PGND11\"\n ],\n \"4\": [\n \"pin4\",\n \"PGND12\"\n ],\n \"5\": [\n \"pin5\",\n \"AO21\"\n ],\n \"6\": [\n \"pin6\",\n \"AO22\"\n ],\n \"7\": [\n \"pin7\",\n \"BO21\"\n ],\n \"8\": [\n \"pin8\",\n \"BO22\"\n ],\n \"9\": [\n \"pin9\",\n \"PGND21\"\n ],\n \"10\": [\n \"pin10\",\n \"PGND22\"\n ],\n \"11\": [\n \"pin11\",\n \"BO11\"\n ],\n \"12\": [\n \"pin12\",\n \"BO12\"\n ],\n \"13\": [\n \"pin13\"\n ],\n \"14\": [\n \"pin14\"\n ],\n \"15\": [\n \"pin15\"\n ],\n \"16\": [\n \"pin16\"\n ],\n \"17\": [\n \"pin17\"\n ],\n \"18\": [\n \"pin18\"\n ],\n \"19\": [\n \"pin19\"\n ],\n \"20\": [\n \"pin20\"\n ],\n \"21\": [\n \"pin21\"\n ],\n \"22\": [\n \"pin22\"\n ],\n \"23\": [\n \"pin23\"\n ],\n \"24\": [\n \"pin24\"\n ]\n} as const\nconst pinNames = Object.values(pinLabels)\n\ninterface Props extends CommonLayoutProps {\n name: string\n}\n\nexport const TB6612FNG_O_C_8_EL = (props: Props) => {\n return (\n <chip\n {...props}\n cadModel={{\n objUrl: \"https://modelcdn.tscircuit.com/easyeda_models/download?uuid=47443b588a77418ba6b4ea51975c36c0&pn=C88224\",\n rotationOffset: { x: 0, y: 0, z: 0 },\n positionOffset: { x: 0, y: 0, z: 0 },\n }}\n pinLabels={pinLabels}\n schPinSpacing={0.75}\n schPortArrangement={{\n \"leftSide\": {\n \"direction\": \"top-to-bottom\",\n \"pins\": [\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7,\n 8,\n 9,\n 10,\n 11,\n 12\n ]\n },\n \"rightSide\": {\n \"direction\": \"bottom-to-top\",\n \"pins\": [\n 24,\n 23,\n 22,\n 21,\n 20,\n 19,\n 18,\n 17,\n 16,\n 15,\n 14,\n 13\n ]\n }\n}}\n supplierPartNumbers={{\n \"lcsc\": [\n \"C88224\"\n ]\n}}\n footprint={<footprint>\n <smtpad portHints={[\"1\"]} pcbX=\"-3.575050000000033mm\" pcbY=\"-3.490976000000046mm\" width=\"0.3640074mm\" height=\"2.0820125999999997mm\" shape=\"rect\" />\n<smtpad portHints={[\"2\"]} pcbX=\"-2.925064000000134mm\" pcbY=\"-3.490976000000046mm\" width=\"0.3640074mm\" height=\"2.0820125999999997mm\" shape=\"rect\" />\n<smtpad portHints={[\"3\"]} pcbX=\"-2.2750780000000077mm\" pcbY=\"-3.490976000000046mm\" width=\"0.3640074mm\" height=\"2.0820125999999997mm\" shape=\"rect\" />\n<smtpad portHints={[\"4\"]} pcbX=\"-1.6250920000001088mm\" pcbY=\"-3.490976000000046mm\" width=\"0.3640074mm\" height=\"2.0820125999999997mm\" shape=\"rect\" />\n<smtpad portHints={[\"5\"]} pcbX=\"-0.9751059999999825mm\" pcbY=\"-3.490976000000046mm\" width=\"0.3640074mm\" height=\"2.0820125999999997mm\" shape=\"rect\" />\n<smtpad portHints={[\"6\"]} pcbX=\"-0.32486600000004273mm\" pcbY=\"-3.490976000000046mm\" width=\"0.3640074mm\" height=\"2.0820125999999997mm\" shape=\"rect\" />\n<smtpad portHints={[\"7\"]} pcbX=\"0.32512000000008356mm\" pcbY=\"-3.490976000000046mm\" width=\"0.3640074mm\" height=\"2.0820125999999997mm\" shape=\"rect\" />\n<smtpad portHints={[\"8\"]} pcbX=\"0.9751059999999825mm\" pcbY=\"-3.490976000000046mm\" width=\"0.3640074mm\" height=\"2.0820125999999997mm\" shape=\"rect\" />\n<smtpad portHints={[\"9\"]} pcbX=\"1.625091999999995mm\" pcbY=\"-3.490976000000046mm\" width=\"0.3640074mm\" height=\"2.0820125999999997mm\" shape=\"rect\" />\n<smtpad portHints={[\"10\"]} pcbX=\"2.2750780000000077mm\" pcbY=\"-3.490976000000046mm\" width=\"0.3640074mm\" height=\"2.0820125999999997mm\" shape=\"rect\" />\n<smtpad portHints={[\"11\"]} pcbX=\"2.9250640000000203mm\" pcbY=\"-3.490976000000046mm\" width=\"0.3640074mm\" height=\"2.0820125999999997mm\" shape=\"rect\" />\n<smtpad portHints={[\"12\"]} pcbX=\"3.575049999
build
Process completed with exit code 1.
build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
build
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/