Improved resolveValue/rejectValue error messages

This commit is contained in:
Elliot Nelson
2019-05-07 16:30:48 -04:00
parent 72aa0bbe4d
commit 95e1890e64
2 changed files with 6 additions and 10 deletions

View File

@@ -94,7 +94,7 @@ getJasmineRequireObj().SpyStrategy = function(j$) {
var Promise = j$.getPromise();
if (!Promise) {
throw new Error('resolveValue is unavailable because the environment does not support promises.');
throw new Error('resolveValue requires global Promise, or a `promiseLibrary` configured with `jasmine.getEnv().configure()`');
}
this.plan = function() {
@@ -113,7 +113,7 @@ getJasmineRequireObj().SpyStrategy = function(j$) {
var Promise = j$.getPromise();
if (!Promise) {
throw new Error('rejectValue is unavailable because the environment does not support promises.');
throw new Error('rejectValue requires global Promise, or a `promiseLibrary` configured with `jasmine.getEnv().configure()`');
}
this.plan = function() {