File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -253,9 +253,6 @@ var testFiles =[
253
253
, '/test/functional/promises_cursor_tests.js'
254
254
, '/test/functional/operation_promises_example_tests.js'
255
255
256
- // Generator tests
257
- , '/test/functional/operation_generators_example_tests.js'
258
-
259
256
// Logging tests
260
257
, '/test/functional/logger_tests.js'
261
258
@@ -288,6 +285,13 @@ var testFiles =[
288
285
, '/test/functional/authentication_tests.js'
289
286
]
290
287
288
+ // Check if we support es6 generators
289
+ try {
290
+ eval ( "(function *(){})" ) ;
291
+ // Generator tests
292
+ testFiles . push ( '/test/functional/operation_generators_example_tests.js' ) ;
293
+ } catch ( err ) { }
294
+
291
295
// Add all the tests to run
292
296
testFiles . forEach ( function ( t ) {
293
297
if ( t != "" ) runner . add ( t ) ;
You can’t perform that action at this time.
0 commit comments