harmonyc 0.9.0 → 0.10.1

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.
@@ -61,7 +61,7 @@ export class NodeTest {
61
61
  errorStep(action, errorMessage) {
62
62
  var _a;
63
63
  this.declareFeatureVariables([action]);
64
- this.tf.print(`expect(async () => {`);
64
+ this.tf.print(`await expect(async () => {`);
65
65
  this.tf.indent(() => {
66
66
  action.toCode(this);
67
67
  });
@@ -167,7 +167,10 @@ export function functionName(phrase) {
167
167
  const { kind } = phrase;
168
168
  return ((kind === 'response' ? 'Then_' : 'When_') +
169
169
  ([...phrase.content, phrase.docstring ? [phrase.docstring] : []]
170
- .flatMap((c) => c instanceof Word ? words(c.text) : c instanceof Arg ? ['_'] : [])
171
- .filter((x) => x)
172
- .join('_') || '_'));
170
+ .flatMap((c) => c instanceof Word
171
+ ? words(c.text).filter((x) => x)
172
+ : c instanceof Arg
173
+ ? ['']
174
+ : [])
175
+ .join('_') || ''));
173
176
  }
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.9.0",
4
+ "version": "0.10.1",
5
5
  "author": "Bernát Kalló",
6
6
  "type": "module",
7
7
  "bin": {