This repository was archived by the owner on Nov 8, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +22
-16
lines changed
test/cucumber/step_definitions Expand file tree Collapse file tree 2 files changed +22
-16
lines changed Original file line number Diff line number Diff line change 1
1
module . exports = function ( ) {
2
- this . Given (
3
- / ^ y o u e x p e c t H T T P m e s s a g e m e t h o d " ( [ ^ " ] * ) " $ / ,
4
- ( method , callback ) => {
5
- this . expected . method = method ;
6
- return callback ( ) ;
7
- }
8
- ) ;
2
+ this . Given ( / ^ y o u e x p e c t H T T P m e s s a g e m e t h o d " ( [ ^ " ] * ) " $ / , function (
3
+ method ,
4
+ callback
5
+ ) {
6
+ this . expected . method = method ;
7
+ return callback ( ) ;
8
+ } ) ;
9
9
10
- return this . When (
11
- / ^ r e a l H T T P m e s s a g e m e t h o d i s " ( [ ^ " ] * ) " $ / ,
12
- ( method , callback ) => {
13
- this . real . message = method ;
14
- return callback ( ) ;
15
- }
16
- ) ;
10
+ return this . When ( / ^ r e a l H T T P m e s s a g e m e t h o d i s " ( [ ^ " ] * ) " $ / , function (
11
+ method ,
12
+ callback
13
+ ) {
14
+ this . real . method = method ;
15
+ return callback ( ) ;
16
+ } ) ;
17
17
} ;
Original file line number Diff line number Diff line change 1
1
module . exports = function ( ) {
2
- this . Given ( / ^ y o u e x p e c t H T T P m e s s a g e U R I " ( [ ^ " ] * ) " $ / , ( uri , callback ) => {
2
+ this . Given ( / ^ y o u e x p e c t H T T P m e s s a g e U R I " ( [ ^ " ] * ) " $ / , function (
3
+ uri ,
4
+ callback
5
+ ) {
3
6
this . expected . uri = uri ;
4
7
return callback ( ) ;
5
8
} ) ;
6
9
7
- return this . When ( / ^ r e a l H T T P m e s s a g e U R I i s " ( [ ^ " ] * ) " $ / , ( uri , callback ) => {
10
+ return this . When ( / ^ r e a l H T T P m e s s a g e U R I i s " ( [ ^ " ] * ) " $ / , function (
11
+ uri ,
12
+ callback
13
+ ) {
8
14
this . real . uri = uri ;
9
15
return callback ( ) ;
10
16
} ) ;
You can’t perform that action at this time.
0 commit comments