harmonyc 0.6.0-8 → 0.6.0-9

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.
Files changed (2) hide show
  1. package/model.js +3 -1
  2. package/package.json +1 -1
package/model.js CHANGED
@@ -117,7 +117,9 @@ export class Phrase {
117
117
  return this.kind === 'action' ? 'When' : 'Then';
118
118
  }
119
119
  toCode(cg) {
120
- return cg.phrase(this);
120
+ if (!this.text)
121
+ return;
122
+ cg.phrase(this);
121
123
  }
122
124
  definition() {
123
125
  const key = this.kind === 'action' ? this.text : `=> ${this.text}`;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "harmonyc",
3
3
  "description": "Harmony Code - model-driven BDD for Vitest",
4
- "version": "0.6.0-8",
4
+ "version": "0.6.0-9",
5
5
  "author": "Bernát Kalló",
6
6
  "type": "module",
7
7
  "bin": {