Merge branch 'no-children' of https://github.com/johnjbarton/jasmine into 4.0
* Merges #1742 from @johnjbarton
This commit is contained in:
@@ -1097,11 +1097,7 @@ getJasmineRequireObj().Env = function(j$) {
|
||||
}
|
||||
addSpecsToSuite(suite, specDefinitions);
|
||||
if (suite.parentSuite && !suite.children.length) {
|
||||
this.deprecated(
|
||||
'describe with no children (describe() or it()) is ' +
|
||||
'deprecated and will be removed in a future version of Jasmine. ' +
|
||||
'Please either remove the describe or add children to it.'
|
||||
);
|
||||
throw new Error('describe with no children (describe() or it())');
|
||||
}
|
||||
return suite;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user