test: test for the actual better clone- and make sure we use the JSON stringify and parse for this since tests are weird
ref: N25B-371
This commit is contained in:
@@ -15,7 +15,7 @@ describe('NormNode', () => {
|
||||
});
|
||||
|
||||
function createNode(id: string, type: string, position: XYPosition, data: Record<string, unknown>, deletable?: boolean) {
|
||||
const defaultData = NodeDefaults[type as keyof typeof NodeDefaults]
|
||||
const defaultData = JSON.parse(JSON.stringify(NodeDefaults[type as keyof typeof NodeDefaults]))
|
||||
const newData = {
|
||||
id: id,
|
||||
type: type,
|
||||
|
||||
Reference in New Issue
Block a user