topological-nodered-wdio 0.5.3 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "topological-nodered-wdio",
3
3
  "description": "Open source WebdriverIO nodes for Node-RED",
4
- "version": "0.5.3",
4
+ "version": "0.5.4",
5
5
  "author": "topological",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -150,14 +150,14 @@ module.exports.log = async (node) => {
150
150
  let context = node.context()
151
151
  let stepCount = await (context.global.get('stepCount') || 0) + 1
152
152
  let document = await context.global.get('document') || ''
153
- await context.global.set('document', `${document}\n${stepCount}. Node: ${node.name} - ${node.log}`)
153
+ await context.global.set('document', `${document}${stepCount}. Node: ${node.name} - ${node.log}\n`)
154
154
  await context.global.set('stepCount', stepCount)
155
155
  }
156
156
 
157
157
  module.exports.document = async (node) => {
158
158
  let context = node.context()
159
159
  let document = await context.global.get('document') || ''
160
- document = node.line? `${document}\n\n${node.name}\n${node.refUrl? `Ref: ${node.refUrl}`:''}\n\n` :
161
- `${document}\n********************\n${node.name}\n${node.refUrl? `Ref: ${node.refUrl}`:''}\n********************`
160
+ document = node.line? `${document}\n${node.name}${node.refUrl? `\nRef: ${node.refUrl}`:''}\n\n` :
161
+ `${document}********************\n${node.name}${node.refUrl? `\nRef: ${node.refUrl}`:''}\n********************\n`
162
162
  await context.global.set('document', document.replaceAll('\\n','\n'))
163
163
  }