File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,8 @@ Meteor.isTest = !!TEST_METADATA.isTest;
13
13
Meteor . isAppTest = ! ! TEST_METADATA . isAppTest ;
14
14
15
15
var testDriverPackageName = TEST_METADATA . driverPackage ;
16
- if ( testDriverPackageName ) {
16
+ if ( typeof testDriverPackageName === "string" ) {
17
17
Meteor . startup ( function ( ) {
18
- if ( typeof testDriverPackageName !== "string" ) {
19
- throw new Error ( "No --driver-package specified for `meteor test`" ) ;
20
- }
21
-
22
18
var testDriverPackage = Package [ testDriverPackageName ] ;
23
19
if ( ! testDriverPackage ) {
24
20
throw new Error ( "Can't find test driver package: " + testDriverPackageName ) ;
@@ -30,7 +26,7 @@ if (testDriverPackageName) {
30
26
throw new Error ( "Test driver package " + testDriverPackageName
31
27
+ " missing `runTests` export" ) ;
32
28
}
33
- testDriverPackage . runTests ( ) ;
29
+ testDriverPackage . runTests ( ) ;
34
30
} else {
35
31
// The server can optionally define `start`
36
32
if ( typeof testDriverPackage . start === "function" ) {
You can’t perform that action at this time.
0 commit comments