@@ -11,9 +11,9 @@ Feature: step definition snippets
11
11
Then it fails
12
12
And the output contains the text:
13
13
"""
14
- Given('a step numbered {int}', function (int, callback ) {
14
+ Given('a step numbered {int}', function (int) {
15
15
// Write code here that turns the phrase above into concrete actions
16
- callback(null, 'pending') ;
16
+ return 'pending';
17
17
});
18
18
"""
19
19
@@ -28,9 +28,9 @@ Feature: step definition snippets
28
28
Then it fails
29
29
And the output contains the text:
30
30
"""
31
- Given('a step with {string}', function (string, callback ) {
31
+ Given('a step with {string}', function (string) {
32
32
// Write code here that turns the phrase above into concrete actions
33
- callback(null, 'pending') ;
33
+ return 'pending';
34
34
});
35
35
"""
36
36
@@ -45,9 +45,9 @@ Feature: step definition snippets
45
45
Then it fails
46
46
And the output contains the text:
47
47
"""
48
- Given('a step with {string} and {string}', function (string, string2, callback ) {
48
+ Given('a step with {string} and {string}', function (string, string2) {
49
49
// Write code here that turns the phrase above into concrete actions
50
- callback(null, 'pending') ;
50
+ return 'pending';
51
51
});
52
52
"""
53
53
@@ -64,8 +64,8 @@ Feature: step definition snippets
64
64
Then it fails
65
65
And the output contains the text:
66
66
"""
67
- Given('a step with {string}', function (string, callback ) {
67
+ Given('a step with {string}', function (string) {
68
68
// Write code here that turns the phrase above into concrete actions
69
- callback(null, 'pending') ;
69
+ return 'pending';
70
70
});
71
71
"""
0 commit comments