Skip to content

Commit acf626e

Browse files
committed
Setup cucumber-js
All step definitions pending
1 parent 45f1f0b commit acf626e

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

features/step_definitions/steps.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
const { Given, When, Then } = require('cucumber');
2+
3+
Given('there is an organization in Human Connection with these credentials:', function (dataTable) {
4+
// Write code here that turns the phrase above into concrete actions
5+
return 'pending';
6+
});
7+
8+
Given('I am authenticated', function () {
9+
// Write code here that turns the phrase above into concrete actions
10+
return 'pending';
11+
});
12+
13+
When('I send a POST request to {string} with:', function (string, docString) {
14+
// Write code here that turns the phrase above into concrete actions
15+
return 'pending';
16+
});
17+
18+
Then('there is an access token in the response:', function (docString) {
19+
// Write code here that turns the phrase above into concrete actions
20+
return 'pending';
21+
});
22+
23+
Then('a new post should be created', function () {
24+
// Write code here that turns the phrase above into concrete actions
25+
return 'pending';
26+
});

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"license": "MIT",
1515
"scripts": {
1616
"lint": "eslint --ext mjs .",
17-
"start": "node --experimental-modules index.mjs"
17+
"start": "node --experimental-modules index.mjs",
18+
"test": "cucumber-js"
1819
},
1920
"devDependencies": {
2021
"eslint": "^4.19.1",

0 commit comments

Comments
 (0)