From fdb7df812cf787756e3aa1a90aa8226cf51b6789 Mon Sep 17 00:00:00 2001 From: Sheel Choksi Date: Sat, 19 Oct 2013 21:18:06 -0700 Subject: [PATCH] Improve error message when a spec doesn't call the async callback within the default time interval --- src/core/Spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Spec.js b/src/core/Spec.js index 80ce491d..155fcf06 100644 --- a/src/core/Spec.js +++ b/src/core/Spec.js @@ -56,7 +56,7 @@ getJasmineRequireObj().Spec = function(j$) { function timeoutable(fn) { return function(done) { var timeout = Function.prototype.apply.apply(self.timer.setTimeout, [j$.getGlobal(), [function() { - onException(new Error('timeout')); + onException(new Error('Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.')); done(); }, j$.DEFAULT_TIMEOUT_INTERVAL]]);