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()"); } };