Skip to content

Commit

Permalink
feat: extracted flows from unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ckiniation authored and Joel Krec committed Oct 11, 2022
1 parent 66ea610 commit 523a835
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 13 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
26 changes: 25 additions & 1 deletion test/units/flows/write-flows.js
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
[]
]
}
])
}
12 changes: 0 additions & 12 deletions test/units/opcua-iiot-write.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit 523a835

Please sign in to comment.