@zohodesk/testinglibrary 0.1.8-bdd-29 → 0.1.8-bdd-30

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.
@@ -11,6 +11,7 @@ const Given = Step;
11
11
  const Then = Step;
12
12
  const When = Step;
13
13
  const And = Step;
14
+ const But = Step;
14
15
  function createBdd() {
15
16
  return {
16
17
  Given,
@@ -41,7 +41,7 @@ function filterTestData(description, argument) {
41
41
  /** Scenario Table Passed */
42
42
 
43
43
  if (stepArguments.scenarioTable) {
44
- return getScenarioTable(stepArguments, argument);
44
+ return getScenarioTable(stepArguments, description, argument);
45
45
  // var exceedParam = stepArguments.inputParameter[0];
46
46
  // const extracted = argument.map(element => {
47
47
  // return exceedParam[element.trim()];
@@ -61,12 +61,12 @@ function getInputs(stepArguments) {
61
61
  function getStepTable(stepArguments) {
62
62
  const dataTable = {
63
63
  raw: () => {
64
- return stepArguments.stepArguments || [];
64
+ return stepArguments.dataTableStep || [];
65
65
  }
66
66
  };
67
67
  return [dataTable];
68
68
  }
69
- function getScenarioTable(stepArguments, argument) {
69
+ function getScenarioTable(stepArguments, description, argument) {
70
70
  var exceedParam = stepArguments.inputParameter[0];
71
71
  const extracted = argument.map(element => {
72
72
  return exceedParam[element.trim()];
@@ -85,12 +85,14 @@ const $Given = $And;
85
85
  const $Step = $And;
86
86
  const $Then = $And;
87
87
  const $When = $And;
88
+ const $But = $And;
88
89
  function createNativeBDD() {
89
90
  return {
90
91
  $Given,
91
92
  $When,
92
93
  $And,
93
94
  $Then,
94
- $Step
95
+ $Step,
96
+ $But
95
97
  };
96
98
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/testinglibrary",
3
- "version": "0.1.8-bdd-29",
3
+ "version": "0.1.8-bdd-30",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {