diff --git a/CHANGELOG.md b/CHANGELOG.md index 48ff2999..325608ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,6 +34,7 @@ * added npm run scripts for e2e, unit and core tests on their own ([f282bd4](https://github.com/BiancoRoyal/node-red-contrib-iiot-opcua/commit/f282bd4264ffc63cd52a9f3d4ba26539229a7d4c)) * direct use of OPC UA object types ([9b9cc72](https://github.com/BiancoRoyal/node-red-contrib-iiot-opcua/commit/9b9cc72ba65a011cfb49697615d73622a3fa6768)) +* extracted flows from unit tests ([d154bb6](https://github.com/BiancoRoyal/node-red-contrib-iiot-opcua/commit/d154bb6ec0ae498bba386deaf4bc383d02999b1b)) * extracted flows from Unit tests ([9597e81](https://github.com/BiancoRoyal/node-red-contrib-iiot-opcua/commit/9597e8147df9d1ceab8de975bb8792b84acd556b)) * extracted read-flows ([fde0339](https://github.com/BiancoRoyal/node-red-contrib-iiot-opcua/commit/fde033986a193b08839f6f395d8554db5be8e8da)) * **response:** new payload type in json ([de22d9b](https://github.com/BiancoRoyal/node-red-contrib-iiot-opcua/commit/de22d9b25ee4c7bede50a4077f691097ddcf5f5f)) diff --git a/test/units/flows/write-flows.js b/test/units/flows/write-flows.js index fb2ea9a3..b3296c31 100644 --- a/test/units/flows/write-flows.js +++ b/test/units/flows/write-flows.js @@ -3,5 +3,29 @@ const helperExtensions = require('../../helper/test-helper-extensions') module.exports = { - "testUnitWriteFlow": helperExtensions.cleanFlowPositionData() + "testUnitWriteFlow": helperExtensions.cleanFlowPositionData([ + { + "id": "b79fdf68790c5ed2", + "type": "tab", + "label": "testUnitWriteFlow", + "disabled": false, + "info": "", + "env": [] + }, + { + "id": "34d2c6bc.43275b", + "type": "OPCUA-IIoT-Write", + "z": "b79fdf68790c5ed2", + "connector": "", + "name": "TestWrite", + "justValue": false, + "showStatusActivities": false, + "showErrors": true, + "x": 220, + "y": 170, + "wires": [ + [] + ] + } + ]) } \ No newline at end of file diff --git a/test/units/opcua-iiot-write.test.js b/test/units/opcua-iiot-write.test.js index 9666ea19..3b3e9857 100644 --- a/test/units/opcua-iiot-write.test.js +++ b/test/units/opcua-iiot-write.test.js @@ -28,18 +28,6 @@ var writeNodesToLoad = [injectNodeRedNode, functionNodeRedNode, inputNode] var testFlows = require('./flows/write-flows') - { - 'id': '34d2c6bc.43275b', - 'type': 'OPCUA-IIoT-Write', - 'connector': '', - 'name': 'TestWrite', - 'justValue': false, - 'showStatusActivities': false, - 'showErrors': true, - 'wires': [[]] - } -] - describe('OPC UA Write node Unit Testing', function () { beforeEach(function (done) { helper.startServer(function () {