node-red-quantum / node-red-contrib-quantum

Quantum computing functionality for Node-RED
https://node-red-quantum.github.io/
Apache License 2.0
16 stars 2 forks source link

More unit tests, fixes for some failing unit tests #105

Closed ttoktassynov closed 3 years ago

ttoktassynov commented 3 years ago

Purpose

To check that nodes correctly validate incoming inputs. Minor fixes for some test cases.

Changes

New Requirements

louislefevre commented 3 years ago

Just pushed commit 6da350a48036c8d463931444b45bbcfe510ad2e0 to remove a redundancy: nodeId is always the same as flowBuilder.inputId, so there is no need to have it as a parameter. Furthermore, since these ids are always the same, we only need to call getNode() once.

Anyway, approved πŸ‘

ttoktassynov commented 3 years ago

Just pushed commit 6da350a to remove a redundancy: nodeId is always the same as flowBuilder.inputId, so there is no need to have it as a parameter. Furthermore, since these ids are always the same, we only need to call getNode() once.

Anyway, approved πŸ‘

The idea was to have a nodeFailed function to which I could send any node Id in the flow , which I know might fail. I thought it’s not always the first in the flow. But I agree currently it is redundant.