fix: fix eslint issues, adjust norm test for dev merge

ref: N25B-371
This commit is contained in:
Björn Otgaar
2025-12-03 11:41:14 +01:00
parent f0c250626f
commit c167144b4d
6 changed files with 17 additions and 12 deletions

View File

@@ -48,9 +48,10 @@ describe('NormNode', () => {
test.each(getAllTypes())('it should render %s node with the default data', (nodeType) => {
const lengthBefore = screen.getAllByText(/.*/).length;
let newNode = createNode(nodeType + "1", nodeType, {x: 200, y:200}, {})
let uiElement = Object.entries(NodeTypes).find(([t])=>t==nodeType)?.[1]!;
let props = {
const newNode = createNode(nodeType + "1", nodeType, {x: 200, y:200}, {})
const uiElement = Object.entries(NodeTypes).find(([t])=>t==nodeType)?.[1];
expect(uiElement).toBeDefined();
const props = {
id:newNode.id,
type:newNode.type as string,
data:newNode.data as any,