File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
test/integration/modules/integration-test/test-case Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,14 @@ class TestCasesConfig {
2727 config : config . path ,
2828 tests : { }
2929 } ;
30- Object . keys ( config . data . test ) . forEach ( testCase => {
31- let testCaseId = path . join ( config . data . suite , testCase ) ;
32- let testCaseData = config . data . test [ testCase ] ;
33- suite . tests [ testCaseId ] = testCaseData ;
34- configs . tests [ testCaseId ] = testCaseData ;
35- } ) ;
30+ if ( config . data . test ) {
31+ Object . keys ( config . data . test ) . forEach ( testCase => {
32+ let testCaseId = path . join ( config . data . suite , testCase ) ;
33+ let testCaseData = config . data . test [ testCase ] ;
34+ suite . tests [ testCaseId ] = testCaseData ;
35+ configs . tests [ testCaseId ] = testCaseData ;
36+ } ) ;
37+ }
3638 configs . suites . push ( suite ) ;
3739 return resolve ( ) ;
3840 } ) . catch ( err => {
You can’t perform that action at this time.
0 commit comments