Update describe error message to no longer assume errant args are done

Fixes #896
This commit is contained in:
Gregg Van Hove
2016-02-18 09:31:31 -08:00
parent c454658c54
commit 1e0381a495
3 changed files with 3 additions and 3 deletions

View File

@@ -291,7 +291,7 @@ 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');
throw new Error('describe does not expect any arguments');
}
if (currentDeclarationSuite.markedPending) {
suite.pend();