Merge branch 'himajasuman-issue#896'

Fixes #896
This commit is contained in:
Gregg Van Hove
2015-10-27 14:12:42 -07:00
3 changed files with 15 additions and 0 deletions

View File

@@ -793,6 +793,9 @@ getJasmineRequireObj().Env = function(j$) {
this.describe = function(description, specDefinitions) {
var suite = suiteFactory(description);
if (specDefinitions.length > 0) {
throw new Error('describe does not expect a done parameter');
}
if (currentDeclarationSuite.markedPending) {
suite.pend();
}