@@ -111,9 +111,9 @@ lab.experiment('api', { parallel: true }, function() {
111
111
} ) ;
112
112
113
113
lab . test ( 'should handle all up parameter variations properly' ,
114
- { parallel : true } , function ( done ) {
114
+ { parallel : true } , function ( ) {
115
115
116
- Promise . resolve ( [
116
+ return Promise . resolve ( [
117
117
[ ] , // promise
118
118
[ sinon . spy ( ) ] ,
119
119
[ 'nameatargetmigration' , sinon . spy ( ) ] , // targeted migration
@@ -126,14 +126,13 @@ lab.experiment('api', { parallel: true }, function() {
126
126
[ 1 , 'testscope' ] // promise scope target
127
127
] )
128
128
. each ( defaultExecParams ( 'up' ) )
129
- . each ( spyCallback )
130
- . asCallback ( done ) ;
129
+ . each ( spyCallback ) ;
131
130
} ) ;
132
131
133
132
lab . test ( 'should handle all down parameter variations properly' ,
134
- { parallel : true } , function ( done ) {
133
+ { parallel : true } , function ( ) {
135
134
136
- Promise . resolve ( [
135
+ return Promise . resolve ( [
137
136
[ ] , // promise
138
137
[ sinon . spy ( ) ] ,
139
138
[ 1 , sinon . spy ( ) ] , // targeted migration
@@ -142,37 +141,34 @@ lab.experiment('api', { parallel: true }, function() {
142
141
[ 1 , 'testscope' ] // promise scope target
143
142
] )
144
143
. each ( defaultExecParams ( 'down' ) )
145
- . each ( spyCallback )
146
- . asCallback ( done ) ;
144
+ . each ( spyCallback ) ;
147
145
} ) ;
148
146
149
147
lab . test ( 'should handle all reset parameter variations properly' ,
150
- { parallel : true } , function ( done ) {
148
+ { parallel : true } , function ( ) {
151
149
152
- Promise . resolve ( [
150
+ return Promise . resolve ( [
153
151
[ ] , // promise
154
152
[ sinon . spy ( ) ] ,
155
153
[ 'testscope' , sinon . spy ( ) ] , // scoped target
156
154
[ 'testscope' ] // promise scope target
157
155
] )
158
156
. each ( defaultExecParams ( 'reset' ) )
159
- . each ( spyCallback )
160
- . asCallback ( done ) ;
157
+ . each ( spyCallback ) ;
161
158
} ) ;
162
159
163
160
lab . test ( 'should handle all sync parameter variations properly' ,
164
- { parallel : true } , function ( done ) {
161
+ { parallel : true } , function ( ) {
165
162
166
- Promise . resolve ( [
163
+ return Promise . resolve ( [
167
164
[ ] ,
168
165
[ 'nameatargetmigration' , sinon . spy ( ) ] , // targeted migration
169
166
[ 'nameatargetmigration' ] , // promise targeted migration
170
167
[ 'nameatargetmigration' , 'testscope' , sinon . spy ( ) ] , // scoped target
171
168
[ 'nameatargetmigration' , 'testscope' ] , // promise scope target
172
169
] )
173
170
. each ( defaultExecParams ( 'sync' ) )
174
- . each ( spyCallback )
175
- . asCallback ( done ) ;
171
+ . each ( spyCallback ) ;
176
172
} ) ;
177
173
} ) ;
178
174
0 commit comments