File tree Expand file tree Collapse file tree 2 files changed +28
-1
lines changed
features/step_definitions Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change
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
+ } ) ;
Original file line number Diff line number Diff line change 14
14
"license" : " MIT" ,
15
15
"scripts" : {
16
16
"lint" : " eslint --ext mjs ." ,
17
- "start" : " node --experimental-modules index.mjs"
17
+ "start" : " node --experimental-modules index.mjs" ,
18
+ "test" : " cucumber-js"
18
19
},
19
20
"devDependencies" : {
20
21
"eslint" : " ^4.19.1" ,
You can’t perform that action at this time.
0 commit comments