Built distribution
This commit is contained in:
@@ -155,8 +155,10 @@ jasmineRequire.HtmlReporter = function(j$) {
|
|||||||
if (noExpectations(result)) {
|
if (noExpectations(result)) {
|
||||||
const noSpecMsg = "Spec '" + result.fullName + "' has no expectations.";
|
const noSpecMsg = "Spec '" + result.fullName + "' has no expectations.";
|
||||||
if (result.status === 'failed') {
|
if (result.status === 'failed') {
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
console.error(noSpecMsg);
|
console.error(noSpecMsg);
|
||||||
} else {
|
} else {
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
console.warn(noSpecMsg);
|
console.warn(noSpecMsg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1545,7 +1545,9 @@ getJasmineRequireObj().Env = function(j$) {
|
|||||||
|
|
||||||
// If we get here, all results have been reported and there's nothing we
|
// If we get here, all results have been reported and there's nothing we
|
||||||
// can do except log the result and hope the user sees it.
|
// can do except log the result and hope the user sees it.
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
console.error('Jasmine received a result after the suite finished:');
|
console.error('Jasmine received a result after the suite finished:');
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
console.error(expectationResult);
|
console.error(expectationResult);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3670,6 +3672,7 @@ getJasmineRequireObj().Deprecator = function(j$) {
|
|||||||
|
|
||||||
Deprecator.prototype.log_ = function(runnable, deprecation, options) {
|
Deprecator.prototype.log_ = function(runnable, deprecation, options) {
|
||||||
if (j$.isError_(deprecation)) {
|
if (j$.isError_(deprecation)) {
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
console.error(deprecation);
|
console.error(deprecation);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -3692,6 +3695,7 @@ getJasmineRequireObj().Deprecator = function(j$) {
|
|||||||
context += '\n' + verboseNote;
|
context += '\n' + verboseNote;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
console.error('DEPRECATION: ' + deprecation + context);
|
console.error('DEPRECATION: ' + deprecation + context);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -5989,6 +5993,7 @@ getJasmineRequireObj().toBeInstanceOf = function(j$) {
|
|||||||
try {
|
try {
|
||||||
expectedMatcher = new j$.Any(expected);
|
expectedMatcher = new j$.Any(expected);
|
||||||
pass = expectedMatcher.asymmetricMatch(actual);
|
pass = expectedMatcher.asymmetricMatch(actual);
|
||||||
|
// eslint-disable-next-line no-unused-vars
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
usageError('Expected value is not a constructor function')
|
usageError('Expected value is not a constructor function')
|
||||||
@@ -7746,6 +7751,7 @@ getJasmineRequireObj().makePrettyPrinter = function(j$) {
|
|||||||
) {
|
) {
|
||||||
try {
|
try {
|
||||||
this.emitScalar(value.toString());
|
this.emitScalar(value.toString());
|
||||||
|
// eslint-disable-next-line no-unused-vars
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.emitScalar('has-invalid-toString-method');
|
this.emitScalar('has-invalid-toString-method');
|
||||||
}
|
}
|
||||||
@@ -7992,6 +7998,7 @@ getJasmineRequireObj().makePrettyPrinter = function(j$) {
|
|||||||
value.toString !== Object.prototype.toString &&
|
value.toString !== Object.prototype.toString &&
|
||||||
value.toString() !== Object.prototype.toString.call(value)
|
value.toString() !== Object.prototype.toString.call(value)
|
||||||
);
|
);
|
||||||
|
// eslint-disable-next-line no-unused-vars
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// The custom toString() threw.
|
// The custom toString() threw.
|
||||||
return true;
|
return true;
|
||||||
@@ -8070,6 +8077,7 @@ getJasmineRequireObj().QueueRunner = function(j$) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function fallbackOnMultipleDone() {
|
function fallbackOnMultipleDone() {
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
console.error(
|
console.error(
|
||||||
new Error(
|
new Error(
|
||||||
"An asynchronous function called its 'done' " +
|
"An asynchronous function called its 'done' " +
|
||||||
@@ -8183,6 +8191,7 @@ getJasmineRequireObj().QueueRunner = function(j$) {
|
|||||||
// Any error we catch here is probably due to a bug in Jasmine,
|
// Any error we catch here is probably due to a bug in Jasmine,
|
||||||
// and it's not likely to end up anywhere useful if we let it
|
// and it's not likely to end up anywhere useful if we let it
|
||||||
// propagate. Log it so it can at least show up when debugging.
|
// propagate. Log it so it can at least show up when debugging.
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -10022,6 +10031,7 @@ getJasmineRequireObj().SpyRegistry = function(j$) {
|
|||||||
let value;
|
let value;
|
||||||
try {
|
try {
|
||||||
value = obj[prop];
|
value = obj[prop];
|
||||||
|
// eslint-disable-next-line no-unused-vars
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user