From 97e2c48000876d1273ce435f80a1e907c2af61e0 Mon Sep 17 00:00:00 2001 From: Florian Dupuy Date: Tue, 3 Dec 2024 15:57:40 +0100 Subject: [PATCH] Add npm test back Signed-off-by: Florian Dupuy --- .github/workflows/build.yml | 1 + src/components/network-area-diagram-viewer/diagram-utils.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 831a662d..93453516 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,6 +40,7 @@ jobs: npm install npm run licenses-check npm run lint + npm run test:coverage npm run build - name: SonarCloud Scan diff --git a/src/components/network-area-diagram-viewer/diagram-utils.ts b/src/components/network-area-diagram-viewer/diagram-utils.ts index 3fe90a5d..50a2f10a 100644 --- a/src/components/network-area-diagram-viewer/diagram-utils.ts +++ b/src/components/network-area-diagram-viewer/diagram-utils.ts @@ -483,7 +483,7 @@ export function getTextNodePosition(textNode: SVGGraphicsElement | null): Point export function getNodeMove(node: NodeMetadata, nodePosition: Point): NODEMOVE { const xNew = round(nodePosition.x); const yNew = round(nodePosition.y); - return { xOrig: node.y, yOrig: node.x, xNew: xNew, yNew: yNew }; + return { xOrig: node.x, yOrig: node.y, xNew: xNew, yNew: yNew }; } // Checks if the element is hoverable