File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -115,16 +115,22 @@ Jasmine.prototype.loadConfigFile = function(configFilePath) {
115
115
Jasmine . prototype . loadConfig = function ( config ) {
116
116
this . specDir = config . spec_dir || this . specDir ;
117
117
118
+ var configOptions = { } ;
119
+
118
120
if ( config . stopSpecOnExpectationFailure !== undefined ) {
119
- this . env . throwOnExpectationFailure ( config . stopSpecOnExpectationFailure ) ;
121
+ configOptions . oneFailurePerSpec = config . stopSpecOnExpectationFailure ;
120
122
}
121
123
122
124
if ( config . stopOnSpecFailure !== undefined ) {
123
- this . env . stopOnSpecFailure ( config . stopOnSpecFailure ) ;
125
+ configOptions . failFast = config . stopOnSpecFailure ;
124
126
}
125
127
126
128
if ( config . random !== undefined ) {
127
- this . env . randomizeTests ( config . random ) ;
129
+ configOptions . random = config . random ;
130
+ }
131
+
132
+ if ( Object . keys ( configOptions ) . length > 0 ) {
133
+ this . env . configure ( configOptions ) ;
128
134
}
129
135
130
136
if ( config . helpers ) {
You can’t perform that action at this time.
0 commit comments