From 8585ef69a57d4bfc1939de7eb201a0b93493036a Mon Sep 17 00:00:00 2001 From: Sheel Choksi Date: Tue, 29 Oct 2013 17:33:51 -0700 Subject: [PATCH] Update clock not installed message to reflect current boot installation process --- lib/jasmine-core/jasmine.js | 2 +- src/core/Clock.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jasmine-core/jasmine.js b/lib/jasmine-core/jasmine.js index 65aebb59..7e0bf0a5 100644 --- a/lib/jasmine-core/jasmine.js +++ b/lib/jasmine-core/jasmine.js @@ -932,7 +932,7 @@ getJasmineRequireObj().Clock = function() { if (installed) { delayedFunctionScheduler.tick(millis); } else { - throw new Error("Mock clock is not installed, use jasmine.getEnv().clock.install()"); + throw new Error("Mock clock is not installed, use jasmine.clock().install()"); } }; diff --git a/src/core/Clock.js b/src/core/Clock.js index fab0fd7a..f78a4136 100644 --- a/src/core/Clock.js +++ b/src/core/Clock.js @@ -61,7 +61,7 @@ getJasmineRequireObj().Clock = function() { if (installed) { delayedFunctionScheduler.tick(millis); } else { - throw new Error("Mock clock is not installed, use jasmine.getEnv().clock.install()"); + throw new Error("Mock clock is not installed, use jasmine.clock().install()"); } };