Adopt strict mode throughout the codebase

This commit is contained in:
Steve Gravrock
2025-10-05 06:53:54 -07:00
parent 73a30ffc3e
commit 68a7cbb991
116 changed files with 442 additions and 0 deletions

View File

@@ -22,6 +22,8 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
'use strict';
/** /**
* Note: Only available on Node. * Note: Only available on Node.
* @module jasmine-core * @module jasmine-core

View File

@@ -22,6 +22,8 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
'use strict';
/** /**
This file starts the process of "booting" Jasmine. It initializes Jasmine, This file starts the process of "booting" Jasmine. It initializes Jasmine,
makes its globals available, and creates the env. This file should be loaded makes its globals available, and creates the env. This file should be loaded

View File

@@ -22,6 +22,8 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
'use strict';
/** /**
This file finishes 'booting' Jasmine, performing all of the necessary This file finishes 'booting' Jasmine, performing all of the necessary
initialization before executing the loaded environment and all of a project's initialization before executing the loaded environment and all of a project's

View File

@@ -34,6 +34,8 @@ jasmineRequire.html = function(j$) {
}; };
jasmineRequire.HtmlReporter = function(j$) { jasmineRequire.HtmlReporter = function(j$) {
'use strict';
function ResultsStateBuilder() { function ResultsStateBuilder() {
this.topResults = new j$.private.ResultsNode({}, '', null); this.topResults = new j$.private.ResultsNode({}, '', null);
this.currentParent = this.topResults; this.currentParent = this.topResults;
@@ -907,6 +909,8 @@ jasmineRequire.HtmlReporter = function(j$) {
}; };
jasmineRequire.HtmlSpecFilter = function() { jasmineRequire.HtmlSpecFilter = function() {
'use strict';
/** /**
* @name HtmlSpecFilter * @name HtmlSpecFilter
* @classdesc Legacy HTML spec filter, for backward compatibility * @classdesc Legacy HTML spec filter, for backward compatibility
@@ -946,6 +950,8 @@ jasmineRequire.HtmlSpecFilter = function() {
}; };
jasmineRequire.ResultsNode = function() { jasmineRequire.ResultsNode = function() {
'use strict';
function ResultsNode(result, type, parent) { function ResultsNode(result, type, parent) {
this.result = result; this.result = result;
this.type = type; this.type = type;
@@ -970,6 +976,8 @@ jasmineRequire.ResultsNode = function() {
}; };
jasmineRequire.QueryString = function() { jasmineRequire.QueryString = function() {
'use strict';
/** /**
* Reads and manipulates the query string. * Reads and manipulates the query string.
* @since 2.0.0 * @since 2.0.0
@@ -1054,6 +1062,8 @@ jasmineRequire.QueryString = function() {
}; };
jasmineRequire.HtmlExactSpecFilter = function() { jasmineRequire.HtmlExactSpecFilter = function() {
'use strict';
/** /**
* Spec filter for use with {@link HtmlReporter} * Spec filter for use with {@link HtmlReporter}
* *

View File

@@ -24,6 +24,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// eslint-disable-next-line no-unused-vars,no-var // eslint-disable-next-line no-unused-vars,no-var
var getJasmineRequireObj = (function(jasmineGlobal) { var getJasmineRequireObj = (function(jasmineGlobal) {
'use strict';
let jasmineRequire; let jasmineRequire;
if ( if (
@@ -134,6 +135,8 @@ var getJasmineRequireObj = (function(jasmineGlobal) {
})(this); })(this);
getJasmineRequireObj().requireMatchers = function(jRequire, j$) { getJasmineRequireObj().requireMatchers = function(jRequire, j$) {
'use strict';
const availableMatchers = [ const availableMatchers = [
'nothing', 'nothing',
'toBe', 'toBe',
@@ -181,6 +184,8 @@ getJasmineRequireObj().requireMatchers = function(jRequire, j$) {
}; };
getJasmineRequireObj().base = function(j$, jasmineGlobal) { getJasmineRequireObj().base = function(j$, jasmineGlobal) {
'use strict';
/** /**
* Maximum object depth the pretty printer will print to. * Maximum object depth the pretty printer will print to.
* Set this to a lower value to speed up pretty printing if you have large objects. * Set this to a lower value to speed up pretty printing if you have large objects.
@@ -680,6 +685,8 @@ getJasmineRequireObj().base = function(j$, jasmineGlobal) {
}; };
getJasmineRequireObj().util = function(j$) { getJasmineRequireObj().util = function(j$) {
'use strict';
const util = {}; const util = {};
util.clone = function(obj) { util.clone = function(obj) {
@@ -776,6 +783,8 @@ getJasmineRequireObj().util = function(j$) {
}; };
getJasmineRequireObj().Spec = function(j$) { getJasmineRequireObj().Spec = function(j$) {
'use strict';
class Spec { class Spec {
#autoCleanClosures; #autoCleanClosures;
#throwOnExpectationFailure; #throwOnExpectationFailure;
@@ -1146,6 +1155,8 @@ getJasmineRequireObj().Spec = function(j$) {
}; };
getJasmineRequireObj().Order = function() { getJasmineRequireObj().Order = function() {
'use strict';
function Order(options) { function Order(options) {
this.random = 'random' in options ? options.random : true; this.random = 'random' in options ? options.random : true;
const seed = (this.seed = options.seed || generateSeed()); const seed = (this.seed = options.seed || generateSeed());
@@ -1190,6 +1201,8 @@ getJasmineRequireObj().Order = function() {
}; };
getJasmineRequireObj().Env = function(j$) { getJasmineRequireObj().Env = function(j$) {
'use strict';
/** /**
* @class Env * @class Env
* @since 2.0.0 * @since 2.0.0
@@ -2007,6 +2020,8 @@ getJasmineRequireObj().Env = function(j$) {
}; };
getJasmineRequireObj().JsApiReporter = function(j$) { getJasmineRequireObj().JsApiReporter = function(j$) {
'use strict';
/** /**
* @name jsApiReporter * @name jsApiReporter
* @classdesc {@link Reporter} added by default in `boot.js` to record results for retrieval in javascript code. An instance is made available as `jsApiReporter` on the global object. * @classdesc {@link Reporter} added by default in `boot.js` to record results for retrieval in javascript code. An instance is made available as `jsApiReporter` on the global object.
@@ -2137,6 +2152,8 @@ getJasmineRequireObj().JsApiReporter = function(j$) {
}; };
getJasmineRequireObj().Any = function(j$) { getJasmineRequireObj().Any = function(j$) {
'use strict';
function Any(expectedObject) { function Any(expectedObject) {
if (typeof expectedObject === 'undefined') { if (typeof expectedObject === 'undefined') {
throw new TypeError( throw new TypeError(
@@ -2183,6 +2200,8 @@ getJasmineRequireObj().Any = function(j$) {
}; };
getJasmineRequireObj().Anything = function(j$) { getJasmineRequireObj().Anything = function(j$) {
'use strict';
function Anything() {} function Anything() {}
Anything.prototype.asymmetricMatch = function(other) { Anything.prototype.asymmetricMatch = function(other) {
@@ -2197,6 +2216,8 @@ getJasmineRequireObj().Anything = function(j$) {
}; };
getJasmineRequireObj().ArrayContaining = function(j$) { getJasmineRequireObj().ArrayContaining = function(j$) {
'use strict';
function ArrayContaining(sample) { function ArrayContaining(sample) {
this.sample = sample; this.sample = sample;
} }
@@ -2234,6 +2255,8 @@ getJasmineRequireObj().ArrayContaining = function(j$) {
}; };
getJasmineRequireObj().ArrayWithExactContents = function(j$) { getJasmineRequireObj().ArrayWithExactContents = function(j$) {
'use strict';
function ArrayWithExactContents(sample) { function ArrayWithExactContents(sample) {
this.sample = sample; this.sample = sample;
} }
@@ -2271,6 +2294,8 @@ getJasmineRequireObj().ArrayWithExactContents = function(j$) {
}; };
getJasmineRequireObj().Empty = function(j$) { getJasmineRequireObj().Empty = function(j$) {
'use strict';
function Empty() {} function Empty() {}
Empty.prototype.asymmetricMatch = function(other) { Empty.prototype.asymmetricMatch = function(other) {
@@ -2300,6 +2325,8 @@ getJasmineRequireObj().Empty = function(j$) {
}; };
getJasmineRequireObj().Falsy = function(j$) { getJasmineRequireObj().Falsy = function(j$) {
'use strict';
function Falsy() {} function Falsy() {}
Falsy.prototype.asymmetricMatch = function(other) { Falsy.prototype.asymmetricMatch = function(other) {
@@ -2314,6 +2341,8 @@ getJasmineRequireObj().Falsy = function(j$) {
}; };
getJasmineRequireObj().Is = function(j$) { getJasmineRequireObj().Is = function(j$) {
'use strict';
class Is { class Is {
constructor(expected) { constructor(expected) {
this.expected_ = expected; this.expected_ = expected;
@@ -2332,6 +2361,8 @@ getJasmineRequireObj().Is = function(j$) {
}; };
getJasmineRequireObj().MapContaining = function(j$) { getJasmineRequireObj().MapContaining = function(j$) {
'use strict';
function MapContaining(sample) { function MapContaining(sample) {
if (!j$.private.isMap(sample)) { if (!j$.private.isMap(sample)) {
throw new Error( throw new Error(
@@ -2378,6 +2409,8 @@ getJasmineRequireObj().MapContaining = function(j$) {
}; };
getJasmineRequireObj().NotEmpty = function(j$) { getJasmineRequireObj().NotEmpty = function(j$) {
'use strict';
function NotEmpty() {} function NotEmpty() {}
NotEmpty.prototype.asymmetricMatch = function(other) { NotEmpty.prototype.asymmetricMatch = function(other) {
@@ -2408,6 +2441,8 @@ getJasmineRequireObj().NotEmpty = function(j$) {
}; };
getJasmineRequireObj().ObjectContaining = function(j$) { getJasmineRequireObj().ObjectContaining = function(j$) {
'use strict';
function ObjectContaining(sample) { function ObjectContaining(sample) {
this.sample = sample; this.sample = sample;
} }
@@ -2477,6 +2512,8 @@ getJasmineRequireObj().ObjectContaining = function(j$) {
}; };
getJasmineRequireObj().SetContaining = function(j$) { getJasmineRequireObj().SetContaining = function(j$) {
'use strict';
function SetContaining(sample) { function SetContaining(sample) {
if (!j$.private.isSet(sample)) { if (!j$.private.isSet(sample)) {
throw new Error( throw new Error(
@@ -2521,6 +2558,8 @@ getJasmineRequireObj().SetContaining = function(j$) {
}; };
getJasmineRequireObj().StringContaining = function(j$) { getJasmineRequireObj().StringContaining = function(j$) {
'use strict';
function StringContaining(expected) { function StringContaining(expected) {
if (!j$.private.isString(expected)) { if (!j$.private.isString(expected)) {
throw new Error('Expected is not a String'); throw new Error('Expected is not a String');
@@ -2546,6 +2585,8 @@ getJasmineRequireObj().StringContaining = function(j$) {
}; };
getJasmineRequireObj().StringMatching = function(j$) { getJasmineRequireObj().StringMatching = function(j$) {
'use strict';
function StringMatching(expected) { function StringMatching(expected) {
if (!j$.private.isString(expected) && !j$.private.isA('RegExp', expected)) { if (!j$.private.isString(expected) && !j$.private.isA('RegExp', expected)) {
throw new Error('Expected is not a String or a RegExp'); throw new Error('Expected is not a String or a RegExp');
@@ -2566,6 +2607,8 @@ getJasmineRequireObj().StringMatching = function(j$) {
}; };
getJasmineRequireObj().Truthy = function(j$) { getJasmineRequireObj().Truthy = function(j$) {
'use strict';
function Truthy() {} function Truthy() {}
Truthy.prototype.asymmetricMatch = function(other) { Truthy.prototype.asymmetricMatch = function(other) {
@@ -2581,6 +2624,8 @@ getJasmineRequireObj().Truthy = function(j$) {
//TODO: expectation result may make more sense as a presentation of an expectation. //TODO: expectation result may make more sense as a presentation of an expectation.
getJasmineRequireObj().buildExpectationResult = function(j$) { getJasmineRequireObj().buildExpectationResult = function(j$) {
'use strict';
function buildExpectationResult(options) { function buildExpectationResult(options) {
const exceptionFormatter = new j$.private.ExceptionFormatter(); const exceptionFormatter = new j$.private.ExceptionFormatter();
@@ -2662,6 +2707,8 @@ getJasmineRequireObj().buildExpectationResult = function(j$) {
}; };
getJasmineRequireObj().CallTracker = function(j$) { getJasmineRequireObj().CallTracker = function(j$) {
'use strict';
/** /**
* @namespace Spy#calls * @namespace Spy#calls
* @since 2.0.0 * @since 2.0.0
@@ -2802,6 +2849,8 @@ getJasmineRequireObj().CallTracker = function(j$) {
}; };
getJasmineRequireObj().clearStack = function(j$) { getJasmineRequireObj().clearStack = function(j$) {
'use strict';
const maxInlineCallCount = 10; const maxInlineCallCount = 10;
function browserQueueMicrotaskImpl(global) { function browserQueueMicrotaskImpl(global) {
@@ -2925,6 +2974,8 @@ getJasmineRequireObj().clearStack = function(j$) {
}; };
getJasmineRequireObj().Clock = function() { getJasmineRequireObj().Clock = function() {
'use strict';
/* global process */ /* global process */
const NODE_JS = const NODE_JS =
typeof process !== 'undefined' && typeof process !== 'undefined' &&
@@ -3272,6 +3323,8 @@ callbacks to execute _before_ running the next one.
}; };
getJasmineRequireObj().CompleteOnFirstErrorSkipPolicy = function(j$) { getJasmineRequireObj().CompleteOnFirstErrorSkipPolicy = function(j$) {
'use strict';
function CompleteOnFirstErrorSkipPolicy(queueableFns) { function CompleteOnFirstErrorSkipPolicy(queueableFns) {
this.queueableFns_ = queueableFns; this.queueableFns_ = queueableFns;
this.erroredFnIx_ = null; this.erroredFnIx_ = null;
@@ -3324,6 +3377,8 @@ getJasmineRequireObj().CompleteOnFirstErrorSkipPolicy = function(j$) {
}; };
getJasmineRequireObj().Configuration = function(j$) { getJasmineRequireObj().Configuration = function(j$) {
'use strict';
/** /**
* This represents the available options to configure Jasmine. * This represents the available options to configure Jasmine.
* Options that are not provided will use their default values. * Options that are not provided will use their default values.
@@ -3506,6 +3561,8 @@ getJasmineRequireObj().Configuration = function(j$) {
}; };
getJasmineRequireObj().CurrentRunableTracker = function() { getJasmineRequireObj().CurrentRunableTracker = function() {
'use strict';
class CurrentRunableTracker { class CurrentRunableTracker {
#currentSpec; #currentSpec;
#currentlyExecutingSuites; #currentlyExecutingSuites;
@@ -3755,6 +3812,8 @@ getJasmineRequireObj().DelayedFunctionScheduler = function(j$) {
}; };
getJasmineRequireObj().Deprecator = function(j$) { getJasmineRequireObj().Deprecator = function(j$) {
'use strict';
function Deprecator(topSuite) { function Deprecator(topSuite) {
this.topSuite_ = topSuite; this.topSuite_ = topSuite;
this.verbose_ = false; this.verbose_ = false;
@@ -3848,6 +3907,8 @@ getJasmineRequireObj().Deprecator = function(j$) {
}; };
getJasmineRequireObj().errors = function() { getJasmineRequireObj().errors = function() {
'use strict';
function ExpectationFailed() {} function ExpectationFailed() {}
ExpectationFailed.prototype = new Error(); ExpectationFailed.prototype = new Error();
@@ -3859,6 +3920,8 @@ getJasmineRequireObj().errors = function() {
}; };
getJasmineRequireObj().ExceptionFormatter = function(j$) { getJasmineRequireObj().ExceptionFormatter = function(j$) {
'use strict';
const ignoredProperties = [ const ignoredProperties = [
'name', 'name',
'message', 'message',
@@ -3984,6 +4047,8 @@ getJasmineRequireObj().ExceptionFormatter = function(j$) {
}; };
getJasmineRequireObj().Expectation = function(j$) { getJasmineRequireObj().Expectation = function(j$) {
'use strict';
/** /**
* Matchers that come with Jasmine out of the box. * Matchers that come with Jasmine out of the box.
* @namespace matchers * @namespace matchers
@@ -4252,6 +4317,8 @@ getJasmineRequireObj().Expectation = function(j$) {
}; };
getJasmineRequireObj().ExpectationFilterChain = function() { getJasmineRequireObj().ExpectationFilterChain = function() {
'use strict';
function ExpectationFilterChain(maybeFilter, prev) { function ExpectationFilterChain(maybeFilter, prev) {
this.filter_ = maybeFilter; this.filter_ = maybeFilter;
this.prev_ = prev; this.prev_ = prev;
@@ -4302,6 +4369,8 @@ getJasmineRequireObj().ExpectationFilterChain = function() {
}; };
getJasmineRequireObj().Expector = function(j$) { getJasmineRequireObj().Expector = function(j$) {
'use strict';
function Expector(options) { function Expector(options) {
this.matchersUtil = options.matchersUtil || { this.matchersUtil = options.matchersUtil || {
buildFailureMessage: function() {} buildFailureMessage: function() {}
@@ -4394,6 +4463,8 @@ getJasmineRequireObj().Expector = function(j$) {
}; };
getJasmineRequireObj().formatErrorMsg = function() { getJasmineRequireObj().formatErrorMsg = function() {
'use strict';
function generateErrorMsg(domain, usage) { function generateErrorMsg(domain, usage) {
const usageDefinition = usage ? '\nUsage: ' + usage : ''; const usageDefinition = usage ? '\nUsage: ' + usage : '';
@@ -4406,6 +4477,8 @@ getJasmineRequireObj().formatErrorMsg = function() {
}; };
getJasmineRequireObj().GlobalErrors = function(j$) { getJasmineRequireObj().GlobalErrors = function(j$) {
'use strict';
class GlobalErrors { class GlobalErrors {
#getConfig; #getConfig;
#adapter; #adapter;
@@ -4708,6 +4781,8 @@ getJasmineRequireObj().GlobalErrors = function(j$) {
}; };
getJasmineRequireObj().toBePending = function(j$) { getJasmineRequireObj().toBePending = function(j$) {
'use strict';
/** /**
* Expect a promise to be pending, i.e. the promise is neither resolved nor rejected. * Expect a promise to be pending, i.e. the promise is neither resolved nor rejected.
* @function * @function
@@ -4740,6 +4815,8 @@ getJasmineRequireObj().toBePending = function(j$) {
}; };
getJasmineRequireObj().toBeRejected = function(j$) { getJasmineRequireObj().toBeRejected = function(j$) {
'use strict';
/** /**
* Expect a promise to be rejected. * Expect a promise to be rejected.
* @function * @function
@@ -4773,6 +4850,8 @@ getJasmineRequireObj().toBeRejected = function(j$) {
}; };
getJasmineRequireObj().toBeRejectedWith = function(j$) { getJasmineRequireObj().toBeRejectedWith = function(j$) {
'use strict';
/** /**
* Expect a promise to be rejected with a value equal to the expected, using deep equality comparison. * Expect a promise to be rejected with a value equal to the expected, using deep equality comparison.
* @function * @function
@@ -4834,6 +4913,8 @@ getJasmineRequireObj().toBeRejectedWith = function(j$) {
}; };
getJasmineRequireObj().toBeRejectedWithError = function(j$) { getJasmineRequireObj().toBeRejectedWithError = function(j$) {
'use strict';
/** /**
* Expect a promise to be rejected with a value matched to the expected * Expect a promise to be rejected with a value matched to the expected
* @function * @function
@@ -4957,6 +5038,8 @@ getJasmineRequireObj().toBeRejectedWithError = function(j$) {
}; };
getJasmineRequireObj().toBeResolved = function(j$) { getJasmineRequireObj().toBeResolved = function(j$) {
'use strict';
/** /**
* Expect a promise to be resolved. * Expect a promise to be resolved.
* @function * @function
@@ -4998,6 +5081,8 @@ getJasmineRequireObj().toBeResolved = function(j$) {
}; };
getJasmineRequireObj().toBeResolvedTo = function(j$) { getJasmineRequireObj().toBeResolvedTo = function(j$) {
'use strict';
/** /**
* Expect a promise to be resolved to a value equal to the expected, using deep equality comparison. * Expect a promise to be resolved to a value equal to the expected, using deep equality comparison.
* @function * @function
@@ -5063,6 +5148,8 @@ getJasmineRequireObj().toBeResolvedTo = function(j$) {
}; };
getJasmineRequireObj().DiffBuilder = function(j$) { getJasmineRequireObj().DiffBuilder = function(j$) {
'use strict';
class DiffBuilder { class DiffBuilder {
constructor(config) { constructor(config) {
this.prettyPrinter_ = this.prettyPrinter_ =
@@ -5177,6 +5264,8 @@ getJasmineRequireObj().DiffBuilder = function(j$) {
}; };
getJasmineRequireObj().MatchersUtil = function(j$) { getJasmineRequireObj().MatchersUtil = function(j$) {
'use strict';
/** /**
* @class MatchersUtil * @class MatchersUtil
* @classdesc Utilities for use in implementing matchers.<br> * @classdesc Utilities for use in implementing matchers.<br>
@@ -5862,6 +5951,8 @@ getJasmineRequireObj().MatchersUtil = function(j$) {
*/ */
getJasmineRequireObj().MismatchTree = function(j$) { getJasmineRequireObj().MismatchTree = function(j$) {
'use strict';
/* /*
To be able to apply custom object formatters at all possible levels of an To be able to apply custom object formatters at all possible levels of an
object graph, DiffBuilder needs to be able to know not just where the object graph, DiffBuilder needs to be able to know not just where the
@@ -5919,6 +6010,8 @@ getJasmineRequireObj().MismatchTree = function(j$) {
}; };
getJasmineRequireObj().nothing = function() { getJasmineRequireObj().nothing = function() {
'use strict';
/** /**
* {@link expect} nothing explicitly. * {@link expect} nothing explicitly.
* @function * @function
@@ -5941,6 +6034,8 @@ getJasmineRequireObj().nothing = function() {
}; };
getJasmineRequireObj().NullDiffBuilder = function(j$) { getJasmineRequireObj().NullDiffBuilder = function(j$) {
'use strict';
return function() { return function() {
return { return {
withPath: function(_, block) { withPath: function(_, block) {
@@ -5953,6 +6048,8 @@ getJasmineRequireObj().NullDiffBuilder = function(j$) {
}; };
getJasmineRequireObj().ObjectPath = function(j$) { getJasmineRequireObj().ObjectPath = function(j$) {
'use strict';
class ObjectPath { class ObjectPath {
constructor(components) { constructor(components) {
this.components = components || []; this.components = components || [];
@@ -5999,6 +6096,8 @@ getJasmineRequireObj().ObjectPath = function(j$) {
}; };
getJasmineRequireObj().requireAsyncMatchers = function(jRequire, j$) { getJasmineRequireObj().requireAsyncMatchers = function(jRequire, j$) {
'use strict';
const availableMatchers = [ const availableMatchers = [
'toBePending', 'toBePending',
'toBeResolved', 'toBeResolved',
@@ -6017,6 +6116,8 @@ getJasmineRequireObj().requireAsyncMatchers = function(jRequire, j$) {
}; };
getJasmineRequireObj().toBe = function(j$) { getJasmineRequireObj().toBe = function(j$) {
'use strict';
/** /**
* {@link expect} the actual value to be `===` to the expected value. * {@link expect} the actual value to be `===` to the expected value.
* @function * @function
@@ -6055,6 +6156,8 @@ getJasmineRequireObj().toBe = function(j$) {
}; };
getJasmineRequireObj().toBeCloseTo = function() { getJasmineRequireObj().toBeCloseTo = function() {
'use strict';
/** /**
* {@link expect} the actual value to be within a specified precision of the expected value. * {@link expect} the actual value to be within a specified precision of the expected value.
* @function * @function
@@ -6106,6 +6209,8 @@ getJasmineRequireObj().toBeCloseTo = function() {
}; };
getJasmineRequireObj().toBeDefined = function() { getJasmineRequireObj().toBeDefined = function() {
'use strict';
/** /**
* {@link expect} the actual value to be defined. (Not `undefined`) * {@link expect} the actual value to be defined. (Not `undefined`)
* @function * @function
@@ -6128,6 +6233,8 @@ getJasmineRequireObj().toBeDefined = function() {
}; };
getJasmineRequireObj().toBeFalse = function() { getJasmineRequireObj().toBeFalse = function() {
'use strict';
/** /**
* {@link expect} the actual value to be `false`. * {@link expect} the actual value to be `false`.
* @function * @function
@@ -6150,6 +6257,8 @@ getJasmineRequireObj().toBeFalse = function() {
}; };
getJasmineRequireObj().toBeFalsy = function() { getJasmineRequireObj().toBeFalsy = function() {
'use strict';
/** /**
* {@link expect} the actual value to be falsy * {@link expect} the actual value to be falsy
* @function * @function
@@ -6172,6 +6281,8 @@ getJasmineRequireObj().toBeFalsy = function() {
}; };
getJasmineRequireObj().toBeGreaterThan = function() { getJasmineRequireObj().toBeGreaterThan = function() {
'use strict';
/** /**
* {@link expect} the actual value to be greater than the expected value. * {@link expect} the actual value to be greater than the expected value.
* @function * @function
@@ -6195,6 +6306,8 @@ getJasmineRequireObj().toBeGreaterThan = function() {
}; };
getJasmineRequireObj().toBeGreaterThanOrEqual = function() { getJasmineRequireObj().toBeGreaterThanOrEqual = function() {
'use strict';
/** /**
* {@link expect} the actual value to be greater than or equal to the expected value. * {@link expect} the actual value to be greater than or equal to the expected value.
* @function * @function
@@ -6218,6 +6331,8 @@ getJasmineRequireObj().toBeGreaterThanOrEqual = function() {
}; };
getJasmineRequireObj().toBeInstanceOf = function(j$) { getJasmineRequireObj().toBeInstanceOf = function(j$) {
'use strict';
const usageError = j$.private.formatErrorMsg( const usageError = j$.private.formatErrorMsg(
'<toBeInstanceOf>', '<toBeInstanceOf>',
'expect(value).toBeInstanceOf(<ConstructorFunction>)' 'expect(value).toBeInstanceOf(<ConstructorFunction>)'
@@ -6284,6 +6399,8 @@ getJasmineRequireObj().toBeInstanceOf = function(j$) {
}; };
getJasmineRequireObj().toBeLessThan = function() { getJasmineRequireObj().toBeLessThan = function() {
'use strict';
/** /**
* {@link expect} the actual value to be less than the expected value. * {@link expect} the actual value to be less than the expected value.
* @function * @function
@@ -6307,6 +6424,8 @@ getJasmineRequireObj().toBeLessThan = function() {
}; };
getJasmineRequireObj().toBeLessThanOrEqual = function() { getJasmineRequireObj().toBeLessThanOrEqual = function() {
'use strict';
/** /**
* {@link expect} the actual value to be less than or equal to the expected value. * {@link expect} the actual value to be less than or equal to the expected value.
* @function * @function
@@ -6330,6 +6449,8 @@ getJasmineRequireObj().toBeLessThanOrEqual = function() {
}; };
getJasmineRequireObj().toBeNaN = function(j$) { getJasmineRequireObj().toBeNaN = function(j$) {
'use strict';
/** /**
* {@link expect} the actual value to be `NaN` (Not a Number). * {@link expect} the actual value to be `NaN` (Not a Number).
* @function * @function
@@ -6362,6 +6483,8 @@ getJasmineRequireObj().toBeNaN = function(j$) {
}; };
getJasmineRequireObj().toBeNegativeInfinity = function(j$) { getJasmineRequireObj().toBeNegativeInfinity = function(j$) {
'use strict';
/** /**
* {@link expect} the actual value to be `-Infinity` (-infinity). * {@link expect} the actual value to be `-Infinity` (-infinity).
* @function * @function
@@ -6394,6 +6517,8 @@ getJasmineRequireObj().toBeNegativeInfinity = function(j$) {
}; };
getJasmineRequireObj().toBeNull = function() { getJasmineRequireObj().toBeNull = function() {
'use strict';
/** /**
* {@link expect} the actual value to be `null`. * {@link expect} the actual value to be `null`.
* @function * @function
@@ -6416,6 +6541,8 @@ getJasmineRequireObj().toBeNull = function() {
}; };
getJasmineRequireObj().toBeNullish = function() { getJasmineRequireObj().toBeNullish = function() {
'use strict';
/** /**
* {@link expect} the actual value to be `null` or `undefined`. * {@link expect} the actual value to be `null` or `undefined`.
* @function * @function
@@ -6438,6 +6565,8 @@ getJasmineRequireObj().toBeNullish = function() {
}; };
getJasmineRequireObj().toBePositiveInfinity = function(j$) { getJasmineRequireObj().toBePositiveInfinity = function(j$) {
'use strict';
/** /**
* {@link expect} the actual value to be `Infinity` (infinity). * {@link expect} the actual value to be `Infinity` (infinity).
* @function * @function
@@ -6470,6 +6599,8 @@ getJasmineRequireObj().toBePositiveInfinity = function(j$) {
}; };
getJasmineRequireObj().toBeTrue = function() { getJasmineRequireObj().toBeTrue = function() {
'use strict';
/** /**
* {@link expect} the actual value to be `true`. * {@link expect} the actual value to be `true`.
* @function * @function
@@ -6492,6 +6623,8 @@ getJasmineRequireObj().toBeTrue = function() {
}; };
getJasmineRequireObj().toBeTruthy = function() { getJasmineRequireObj().toBeTruthy = function() {
'use strict';
/** /**
* {@link expect} the actual value to be truthy. * {@link expect} the actual value to be truthy.
* @function * @function
@@ -6514,6 +6647,8 @@ getJasmineRequireObj().toBeTruthy = function() {
}; };
getJasmineRequireObj().toBeUndefined = function() { getJasmineRequireObj().toBeUndefined = function() {
'use strict';
/** /**
* {@link expect} the actual value to be `undefined`. * {@link expect} the actual value to be `undefined`.
* @function * @function
@@ -6536,6 +6671,8 @@ getJasmineRequireObj().toBeUndefined = function() {
}; };
getJasmineRequireObj().toContain = function() { getJasmineRequireObj().toContain = function() {
'use strict';
/** /**
* {@link expect} the actual value to contain a specific value. * {@link expect} the actual value to contain a specific value.
* @function * @function
@@ -6560,6 +6697,8 @@ getJasmineRequireObj().toContain = function() {
}; };
getJasmineRequireObj().toEqual = function(j$) { getJasmineRequireObj().toEqual = function(j$) {
'use strict';
/** /**
* {@link expect} the actual value to be equal to the expected, using deep equality comparison. * {@link expect} the actual value to be equal to the expected, using deep equality comparison.
* @function * @function
@@ -6593,6 +6732,8 @@ getJasmineRequireObj().toEqual = function(j$) {
}; };
getJasmineRequireObj().toHaveBeenCalled = function(j$) { getJasmineRequireObj().toHaveBeenCalled = function(j$) {
'use strict';
const getErrorMsg = j$.private.formatErrorMsg( const getErrorMsg = j$.private.formatErrorMsg(
'<toHaveBeenCalled>', '<toHaveBeenCalled>',
'expect(<spyObj>).toHaveBeenCalled()' 'expect(<spyObj>).toHaveBeenCalled()'
@@ -6643,6 +6784,8 @@ getJasmineRequireObj().toHaveBeenCalled = function(j$) {
}; };
getJasmineRequireObj().toHaveBeenCalledBefore = function(j$) { getJasmineRequireObj().toHaveBeenCalledBefore = function(j$) {
'use strict';
const getErrorMsg = j$.private.formatErrorMsg( const getErrorMsg = j$.private.formatErrorMsg(
'<toHaveBeenCalledBefore>', '<toHaveBeenCalledBefore>',
'expect(<spyObj>).toHaveBeenCalledBefore(<spyObj>)' 'expect(<spyObj>).toHaveBeenCalledBefore(<spyObj>)'
@@ -6739,6 +6882,8 @@ getJasmineRequireObj().toHaveBeenCalledBefore = function(j$) {
}; };
getJasmineRequireObj().toHaveBeenCalledOnceWith = function(j$) { getJasmineRequireObj().toHaveBeenCalledOnceWith = function(j$) {
'use strict';
const getErrorMsg = j$.private.formatErrorMsg( const getErrorMsg = j$.private.formatErrorMsg(
'<toHaveBeenCalledOnceWith>', '<toHaveBeenCalledOnceWith>',
'expect(<spyObj>).toHaveBeenCalledOnceWith(...arguments)' 'expect(<spyObj>).toHaveBeenCalledOnceWith(...arguments)'
@@ -6848,6 +6993,8 @@ getJasmineRequireObj().toHaveBeenCalledOnceWith = function(j$) {
}; };
getJasmineRequireObj().toHaveBeenCalledTimes = function(j$) { getJasmineRequireObj().toHaveBeenCalledTimes = function(j$) {
'use strict';
const getErrorMsg = j$.private.formatErrorMsg( const getErrorMsg = j$.private.formatErrorMsg(
'<toHaveBeenCalledTimes>', '<toHaveBeenCalledTimes>',
'expect(<spyObj>).toHaveBeenCalledTimes(<Number>)' 'expect(<spyObj>).toHaveBeenCalledTimes(<Number>)'
@@ -6924,6 +7071,8 @@ getJasmineRequireObj().toHaveBeenCalledTimes = function(j$) {
}; };
getJasmineRequireObj().toHaveBeenCalledWith = function(j$) { getJasmineRequireObj().toHaveBeenCalledWith = function(j$) {
'use strict';
const getErrorMsg = j$.private.formatErrorMsg( const getErrorMsg = j$.private.formatErrorMsg(
'<toHaveBeenCalledWith>', '<toHaveBeenCalledWith>',
'expect(<spyObj>).toHaveBeenCalledWith(...arguments)' 'expect(<spyObj>).toHaveBeenCalledWith(...arguments)'
@@ -7031,6 +7180,8 @@ getJasmineRequireObj().toHaveBeenCalledWith = function(j$) {
}; };
getJasmineRequireObj().toHaveClass = function(j$) { getJasmineRequireObj().toHaveClass = function(j$) {
'use strict';
/** /**
* {@link expect} the actual value to be a DOM element that has the expected class * {@link expect} the actual value to be a DOM element that has the expected class
* @function * @function
@@ -7068,6 +7219,8 @@ getJasmineRequireObj().toHaveClass = function(j$) {
}; };
getJasmineRequireObj().toHaveClasses = function(j$) { getJasmineRequireObj().toHaveClasses = function(j$) {
'use strict';
/** /**
* {@link expect} the actual value to be a DOM element that has the expected classes * {@link expect} the actual value to be a DOM element that has the expected classes
* @function * @function
@@ -7105,6 +7258,8 @@ getJasmineRequireObj().toHaveClasses = function(j$) {
}; };
getJasmineRequireObj().toHaveNoOtherSpyInteractions = function(j$) { getJasmineRequireObj().toHaveNoOtherSpyInteractions = function(j$) {
'use strict';
const getErrorMsg = j$.private.formatErrorMsg( const getErrorMsg = j$.private.formatErrorMsg(
'<toHaveNoOtherSpyInteractions>', '<toHaveNoOtherSpyInteractions>',
'expect(<spyObj>).toHaveNoOtherSpyInteractions()' 'expect(<spyObj>).toHaveNoOtherSpyInteractions()'
@@ -7191,6 +7346,8 @@ getJasmineRequireObj().toHaveNoOtherSpyInteractions = function(j$) {
}; };
getJasmineRequireObj().toHaveSize = function(j$) { getJasmineRequireObj().toHaveSize = function(j$) {
'use strict';
/** /**
* {@link expect} the actual size to be equal to the expected, using array-like length or object keys size. * {@link expect} the actual size to be equal to the expected, using array-like length or object keys size.
* @function * @function
@@ -7260,6 +7417,8 @@ getJasmineRequireObj().toHaveSize = function(j$) {
}; };
getJasmineRequireObj().toHaveSpyInteractions = function(j$) { getJasmineRequireObj().toHaveSpyInteractions = function(j$) {
'use strict';
const getErrorMsg = j$.private.formatErrorMsg( const getErrorMsg = j$.private.formatErrorMsg(
'<toHaveSpyInteractions>', '<toHaveSpyInteractions>',
'expect(<spyObj>).toHaveSpyInteractions()' 'expect(<spyObj>).toHaveSpyInteractions()'
@@ -7339,6 +7498,8 @@ getJasmineRequireObj().toHaveSpyInteractions = function(j$) {
}; };
getJasmineRequireObj().toMatch = function(j$) { getJasmineRequireObj().toMatch = function(j$) {
'use strict';
const getErrorMsg = j$.private.formatErrorMsg( const getErrorMsg = j$.private.formatErrorMsg(
'<toMatch>', '<toMatch>',
'expect(<expectation>).toMatch(<string> || <regexp>)' 'expect(<expectation>).toMatch(<string> || <regexp>)'
@@ -7377,6 +7538,8 @@ getJasmineRequireObj().toMatch = function(j$) {
}; };
getJasmineRequireObj().toThrow = function(j$) { getJasmineRequireObj().toThrow = function(j$) {
'use strict';
const getErrorMsg = j$.private.formatErrorMsg( const getErrorMsg = j$.private.formatErrorMsg(
'<toThrow>', '<toThrow>',
'expect(function() {<expectation>}).toThrow()' 'expect(function() {<expectation>}).toThrow()'
@@ -7458,6 +7621,8 @@ getJasmineRequireObj().toThrow = function(j$) {
}; };
getJasmineRequireObj().toThrowError = function(j$) { getJasmineRequireObj().toThrowError = function(j$) {
'use strict';
const getErrorMsg = j$.private.formatErrorMsg( const getErrorMsg = j$.private.formatErrorMsg(
'<toThrowError>', '<toThrowError>',
'expect(function() {<expectation>}).toThrowError(<ErrorConstructor>, <message>)' 'expect(function() {<expectation>}).toThrowError(<ErrorConstructor>, <message>)'
@@ -7660,6 +7825,8 @@ getJasmineRequireObj().toThrowError = function(j$) {
}; };
getJasmineRequireObj().toThrowMatching = function(j$) { getJasmineRequireObj().toThrowMatching = function(j$) {
'use strict';
const usageError = j$.private.formatErrorMsg( const usageError = j$.private.formatErrorMsg(
'<toThrowMatching>', '<toThrowMatching>',
'expect(function() {<expectation>}).toThrowMatching(<Predicate>)' 'expect(function() {<expectation>}).toThrowMatching(<Predicate>)'
@@ -7742,6 +7909,8 @@ getJasmineRequireObj().toThrowMatching = function(j$) {
}; };
getJasmineRequireObj().MockDate = function(j$) { getJasmineRequireObj().MockDate = function(j$) {
'use strict';
function MockDate(global) { function MockDate(global) {
let currentTime = 0; let currentTime = 0;
@@ -7850,6 +8019,8 @@ getJasmineRequireObj().MockDate = function(j$) {
}; };
getJasmineRequireObj().NeverSkipPolicy = function(j$) { getJasmineRequireObj().NeverSkipPolicy = function(j$) {
'use strict';
function NeverSkipPolicy(queueableFns) {} function NeverSkipPolicy(queueableFns) {}
NeverSkipPolicy.prototype.skipTo = function(lastRanFnIx) { NeverSkipPolicy.prototype.skipTo = function(lastRanFnIx) {
@@ -7959,6 +8130,8 @@ getJasmineRequireObj().ParallelReportDispatcher = function(j$) {
}; };
getJasmineRequireObj().makePrettyPrinter = function(j$) { getJasmineRequireObj().makePrettyPrinter = function(j$) {
'use strict';
class SinglePrettyPrintRun { class SinglePrettyPrintRun {
constructor(customObjectFormatters, pp) { constructor(customObjectFormatters, pp) {
this.customObjectFormatters_ = customObjectFormatters; this.customObjectFormatters_ = customObjectFormatters;
@@ -8331,6 +8504,8 @@ getJasmineRequireObj().makePrettyPrinter = function(j$) {
}; };
getJasmineRequireObj().QueueRunner = function(j$) { getJasmineRequireObj().QueueRunner = function(j$) {
'use strict';
let nextid = 1; let nextid = 1;
function StopExecutionError() {} function StopExecutionError() {}
@@ -8715,6 +8890,8 @@ getJasmineRequireObj().ReportDispatcher = function(j$) {
}; };
getJasmineRequireObj().reporterEvents = function(j$) { getJasmineRequireObj().reporterEvents = function(j$) {
'use strict';
/** /**
* Used to tell Jasmine what optional or uncommonly implemented features * Used to tell Jasmine what optional or uncommonly implemented features
* the reporter supports. If not specified, the defaults described in * the reporter supports. If not specified, the defaults described in
@@ -8812,6 +8989,8 @@ getJasmineRequireObj().reporterEvents = function(j$) {
}; };
getJasmineRequireObj().interface = function(jasmine, env) { getJasmineRequireObj().interface = function(jasmine, env) {
'use strict';
const jasmineInterface = { const jasmineInterface = {
/** /**
* Callback passed to parts of the Jasmine base interface. * Callback passed to parts of the Jasmine base interface.
@@ -9335,6 +9514,8 @@ getJasmineRequireObj().interface = function(jasmine, env) {
}; };
getJasmineRequireObj().RunableResources = function(j$) { getJasmineRequireObj().RunableResources = function(j$) {
'use strict';
class RunableResources { class RunableResources {
constructor(options) { constructor(options) {
this.byRunableId_ = {}; this.byRunableId_ = {};
@@ -9493,6 +9674,8 @@ getJasmineRequireObj().RunableResources = function(j$) {
}; };
getJasmineRequireObj().Runner = function(j$) { getJasmineRequireObj().Runner = function(j$) {
'use strict';
class Runner { class Runner {
#topSuite; #topSuite;
#getTotalSpecsDefined; #getTotalSpecsDefined;
@@ -9680,6 +9863,8 @@ getJasmineRequireObj().Runner = function(j$) {
}; };
getJasmineRequireObj().SkipAfterBeforeAllErrorPolicy = function(j$) { getJasmineRequireObj().SkipAfterBeforeAllErrorPolicy = function(j$) {
'use strict';
function SkipAfterBeforeAllErrorPolicy(queueableFns) { function SkipAfterBeforeAllErrorPolicy(queueableFns) {
this.queueableFns_ = queueableFns; this.queueableFns_ = queueableFns;
this.skipping_ = false; this.skipping_ = false;
@@ -9719,6 +9904,8 @@ getJasmineRequireObj().SkipAfterBeforeAllErrorPolicy = function(j$) {
}; };
getJasmineRequireObj().Spy = function(j$) { getJasmineRequireObj().Spy = function(j$) {
'use strict';
const nextOrder = (function() { const nextOrder = (function() {
let order = 0; let order = 0;
@@ -9933,6 +10120,8 @@ getJasmineRequireObj().Spy = function(j$) {
}; };
getJasmineRequireObj().SpyFactory = function(j$) { getJasmineRequireObj().SpyFactory = function(j$) {
'use strict';
function SpyFactory( function SpyFactory(
getCustomStrategies, getCustomStrategies,
getDefaultStrategyFn, getDefaultStrategyFn,
@@ -10303,6 +10492,8 @@ getJasmineRequireObj().SpyRegistry = function(j$) {
}; };
getJasmineRequireObj().SpyStrategy = function(j$) { getJasmineRequireObj().SpyStrategy = function(j$) {
'use strict';
/** /**
* @interface SpyStrategy * @interface SpyStrategy
*/ */
@@ -10484,6 +10675,8 @@ getJasmineRequireObj().SpyStrategy = function(j$) {
}; };
getJasmineRequireObj().StackTrace = function(j$) { getJasmineRequireObj().StackTrace = function(j$) {
'use strict';
function StackTrace(error) { function StackTrace(error) {
let lines = error.stack.split('\n'); let lines = error.stack.split('\n');
@@ -10616,6 +10809,8 @@ getJasmineRequireObj().StackTrace = function(j$) {
}; };
getJasmineRequireObj().Suite = function(j$) { getJasmineRequireObj().Suite = function(j$) {
'use strict';
class Suite { class Suite {
#reportedParentSuiteId; #reportedParentSuiteId;
#throwOnExpectationFailure; #throwOnExpectationFailure;
@@ -11002,6 +11197,8 @@ getJasmineRequireObj().Suite = function(j$) {
}; };
getJasmineRequireObj().SuiteBuilder = function(j$) { getJasmineRequireObj().SuiteBuilder = function(j$) {
'use strict';
class SuiteBuilder { class SuiteBuilder {
constructor(options) { constructor(options) {
this.env_ = options.env; this.env_ = options.env;
@@ -11346,6 +11543,8 @@ getJasmineRequireObj().SuiteBuilder = function(j$) {
}; };
getJasmineRequireObj().Timer = function() { getJasmineRequireObj().Timer = function() {
'use strict';
const defaultNow = (function(Date) { const defaultNow = (function(Date) {
return function() { return function() {
return new Date().getTime(); return new Date().getTime();
@@ -11390,6 +11589,8 @@ getJasmineRequireObj().Timer = function() {
}; };
getJasmineRequireObj().TreeProcessor = function(j$) { getJasmineRequireObj().TreeProcessor = function(j$) {
'use strict';
const defaultMin = Infinity; const defaultMin = Infinity;
const defaultMax = 1 - Infinity; const defaultMax = 1 - Infinity;
@@ -11597,6 +11798,8 @@ getJasmineRequireObj().TreeProcessor = function(j$) {
}; };
getJasmineRequireObj().TreeRunner = function(j$) { getJasmineRequireObj().TreeRunner = function(j$) {
'use strict';
class TreeRunner { class TreeRunner {
#executionTree; #executionTree;
#setTimeout; #setTimeout;
@@ -11884,6 +12087,8 @@ getJasmineRequireObj().TreeRunner = function(j$) {
}; };
getJasmineRequireObj().UserContext = function(j$) { getJasmineRequireObj().UserContext = function(j$) {
'use strict';
function UserContext() {} function UserContext() {}
UserContext.fromExisting = function(oldContext) { UserContext.fromExisting = function(oldContext) {

View File

@@ -1,3 +1,5 @@
'use strict';
/** /**
This file starts the process of "booting" Jasmine. It initializes Jasmine, This file starts the process of "booting" Jasmine. It initializes Jasmine,
makes its globals available, and creates the env. This file should be loaded makes its globals available, and creates the env. This file should be loaded

View File

@@ -1,3 +1,5 @@
'use strict';
/** /**
This file finishes 'booting' Jasmine, performing all of the necessary This file finishes 'booting' Jasmine, performing all of the necessary
initialization before executing the loaded environment and all of a project's initialization before executing the loaded environment and all of a project's

View File

@@ -1,3 +1,5 @@
'use strict';
/** /**
* Note: Only available on Node. * Note: Only available on Node.
* @module jasmine-core * @module jasmine-core

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().CallTracker = function(j$) { getJasmineRequireObj().CallTracker = function(j$) {
'use strict';
/** /**
* @namespace Spy#calls * @namespace Spy#calls
* @since 2.0.0 * @since 2.0.0

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().clearStack = function(j$) { getJasmineRequireObj().clearStack = function(j$) {
'use strict';
const maxInlineCallCount = 10; const maxInlineCallCount = 10;
function browserQueueMicrotaskImpl(global) { function browserQueueMicrotaskImpl(global) {

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().Clock = function() { getJasmineRequireObj().Clock = function() {
'use strict';
/* global process */ /* global process */
const NODE_JS = const NODE_JS =
typeof process !== 'undefined' && typeof process !== 'undefined' &&

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().CompleteOnFirstErrorSkipPolicy = function(j$) { getJasmineRequireObj().CompleteOnFirstErrorSkipPolicy = function(j$) {
'use strict';
function CompleteOnFirstErrorSkipPolicy(queueableFns) { function CompleteOnFirstErrorSkipPolicy(queueableFns) {
this.queueableFns_ = queueableFns; this.queueableFns_ = queueableFns;
this.erroredFnIx_ = null; this.erroredFnIx_ = null;

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().Configuration = function(j$) { getJasmineRequireObj().Configuration = function(j$) {
'use strict';
/** /**
* This represents the available options to configure Jasmine. * This represents the available options to configure Jasmine.
* Options that are not provided will use their default values. * Options that are not provided will use their default values.

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().CurrentRunableTracker = function() { getJasmineRequireObj().CurrentRunableTracker = function() {
'use strict';
class CurrentRunableTracker { class CurrentRunableTracker {
#currentSpec; #currentSpec;
#currentlyExecutingSuites; #currentlyExecutingSuites;

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().Deprecator = function(j$) { getJasmineRequireObj().Deprecator = function(j$) {
'use strict';
function Deprecator(topSuite) { function Deprecator(topSuite) {
this.topSuite_ = topSuite; this.topSuite_ = topSuite;
this.verbose_ = false; this.verbose_ = false;

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().Env = function(j$) { getJasmineRequireObj().Env = function(j$) {
'use strict';
/** /**
* @class Env * @class Env
* @since 2.0.0 * @since 2.0.0

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().ExceptionFormatter = function(j$) { getJasmineRequireObj().ExceptionFormatter = function(j$) {
'use strict';
const ignoredProperties = [ const ignoredProperties = [
'name', 'name',
'message', 'message',

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().Expectation = function(j$) { getJasmineRequireObj().Expectation = function(j$) {
'use strict';
/** /**
* Matchers that come with Jasmine out of the box. * Matchers that come with Jasmine out of the box.
* @namespace matchers * @namespace matchers

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().ExpectationFilterChain = function() { getJasmineRequireObj().ExpectationFilterChain = function() {
'use strict';
function ExpectationFilterChain(maybeFilter, prev) { function ExpectationFilterChain(maybeFilter, prev) {
this.filter_ = maybeFilter; this.filter_ = maybeFilter;
this.prev_ = prev; this.prev_ = prev;

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().Expector = function(j$) { getJasmineRequireObj().Expector = function(j$) {
'use strict';
function Expector(options) { function Expector(options) {
this.matchersUtil = options.matchersUtil || { this.matchersUtil = options.matchersUtil || {
buildFailureMessage: function() {} buildFailureMessage: function() {}

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().GlobalErrors = function(j$) { getJasmineRequireObj().GlobalErrors = function(j$) {
'use strict';
class GlobalErrors { class GlobalErrors {
#getConfig; #getConfig;
#adapter; #adapter;

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().JsApiReporter = function(j$) { getJasmineRequireObj().JsApiReporter = function(j$) {
'use strict';
/** /**
* @name jsApiReporter * @name jsApiReporter
* @classdesc {@link Reporter} added by default in `boot.js` to record results for retrieval in javascript code. An instance is made available as `jsApiReporter` on the global object. * @classdesc {@link Reporter} added by default in `boot.js` to record results for retrieval in javascript code. An instance is made available as `jsApiReporter` on the global object.

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().MockDate = function(j$) { getJasmineRequireObj().MockDate = function(j$) {
'use strict';
function MockDate(global) { function MockDate(global) {
let currentTime = 0; let currentTime = 0;

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().NeverSkipPolicy = function(j$) { getJasmineRequireObj().NeverSkipPolicy = function(j$) {
'use strict';
function NeverSkipPolicy(queueableFns) {} function NeverSkipPolicy(queueableFns) {}
NeverSkipPolicy.prototype.skipTo = function(lastRanFnIx) { NeverSkipPolicy.prototype.skipTo = function(lastRanFnIx) {

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().Order = function() { getJasmineRequireObj().Order = function() {
'use strict';
function Order(options) { function Order(options) {
this.random = 'random' in options ? options.random : true; this.random = 'random' in options ? options.random : true;
const seed = (this.seed = options.seed || generateSeed()); const seed = (this.seed = options.seed || generateSeed());

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().makePrettyPrinter = function(j$) { getJasmineRequireObj().makePrettyPrinter = function(j$) {
'use strict';
class SinglePrettyPrintRun { class SinglePrettyPrintRun {
constructor(customObjectFormatters, pp) { constructor(customObjectFormatters, pp) {
this.customObjectFormatters_ = customObjectFormatters; this.customObjectFormatters_ = customObjectFormatters;

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().QueueRunner = function(j$) { getJasmineRequireObj().QueueRunner = function(j$) {
'use strict';
let nextid = 1; let nextid = 1;
function StopExecutionError() {} function StopExecutionError() {}

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().RunableResources = function(j$) { getJasmineRequireObj().RunableResources = function(j$) {
'use strict';
class RunableResources { class RunableResources {
constructor(options) { constructor(options) {
this.byRunableId_ = {}; this.byRunableId_ = {};

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().Runner = function(j$) { getJasmineRequireObj().Runner = function(j$) {
'use strict';
class Runner { class Runner {
#topSuite; #topSuite;
#getTotalSpecsDefined; #getTotalSpecsDefined;

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().SkipAfterBeforeAllErrorPolicy = function(j$) { getJasmineRequireObj().SkipAfterBeforeAllErrorPolicy = function(j$) {
'use strict';
function SkipAfterBeforeAllErrorPolicy(queueableFns) { function SkipAfterBeforeAllErrorPolicy(queueableFns) {
this.queueableFns_ = queueableFns; this.queueableFns_ = queueableFns;
this.skipping_ = false; this.skipping_ = false;

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().Spec = function(j$) { getJasmineRequireObj().Spec = function(j$) {
'use strict';
class Spec { class Spec {
#autoCleanClosures; #autoCleanClosures;
#throwOnExpectationFailure; #throwOnExpectationFailure;

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().Spy = function(j$) { getJasmineRequireObj().Spy = function(j$) {
'use strict';
const nextOrder = (function() { const nextOrder = (function() {
let order = 0; let order = 0;

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().SpyFactory = function(j$) { getJasmineRequireObj().SpyFactory = function(j$) {
'use strict';
function SpyFactory( function SpyFactory(
getCustomStrategies, getCustomStrategies,
getDefaultStrategyFn, getDefaultStrategyFn,

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().SpyStrategy = function(j$) { getJasmineRequireObj().SpyStrategy = function(j$) {
'use strict';
/** /**
* @interface SpyStrategy * @interface SpyStrategy
*/ */

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().StackTrace = function(j$) { getJasmineRequireObj().StackTrace = function(j$) {
'use strict';
function StackTrace(error) { function StackTrace(error) {
let lines = error.stack.split('\n'); let lines = error.stack.split('\n');

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().Suite = function(j$) { getJasmineRequireObj().Suite = function(j$) {
'use strict';
class Suite { class Suite {
#reportedParentSuiteId; #reportedParentSuiteId;
#throwOnExpectationFailure; #throwOnExpectationFailure;

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().SuiteBuilder = function(j$) { getJasmineRequireObj().SuiteBuilder = function(j$) {
'use strict';
class SuiteBuilder { class SuiteBuilder {
constructor(options) { constructor(options) {
this.env_ = options.env; this.env_ = options.env;

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().Timer = function() { getJasmineRequireObj().Timer = function() {
'use strict';
const defaultNow = (function(Date) { const defaultNow = (function(Date) {
return function() { return function() {
return new Date().getTime(); return new Date().getTime();

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().TreeProcessor = function(j$) { getJasmineRequireObj().TreeProcessor = function(j$) {
'use strict';
const defaultMin = Infinity; const defaultMin = Infinity;
const defaultMax = 1 - Infinity; const defaultMax = 1 - Infinity;

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().TreeRunner = function(j$) { getJasmineRequireObj().TreeRunner = function(j$) {
'use strict';
class TreeRunner { class TreeRunner {
#executionTree; #executionTree;
#setTimeout; #setTimeout;

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().UserContext = function(j$) { getJasmineRequireObj().UserContext = function(j$) {
'use strict';
function UserContext() {} function UserContext() {}
UserContext.fromExisting = function(oldContext) { UserContext.fromExisting = function(oldContext) {

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().Any = function(j$) { getJasmineRequireObj().Any = function(j$) {
'use strict';
function Any(expectedObject) { function Any(expectedObject) {
if (typeof expectedObject === 'undefined') { if (typeof expectedObject === 'undefined') {
throw new TypeError( throw new TypeError(

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().Anything = function(j$) { getJasmineRequireObj().Anything = function(j$) {
'use strict';
function Anything() {} function Anything() {}
Anything.prototype.asymmetricMatch = function(other) { Anything.prototype.asymmetricMatch = function(other) {

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().ArrayContaining = function(j$) { getJasmineRequireObj().ArrayContaining = function(j$) {
'use strict';
function ArrayContaining(sample) { function ArrayContaining(sample) {
this.sample = sample; this.sample = sample;
} }

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().ArrayWithExactContents = function(j$) { getJasmineRequireObj().ArrayWithExactContents = function(j$) {
'use strict';
function ArrayWithExactContents(sample) { function ArrayWithExactContents(sample) {
this.sample = sample; this.sample = sample;
} }

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().Empty = function(j$) { getJasmineRequireObj().Empty = function(j$) {
'use strict';
function Empty() {} function Empty() {}
Empty.prototype.asymmetricMatch = function(other) { Empty.prototype.asymmetricMatch = function(other) {

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().Falsy = function(j$) { getJasmineRequireObj().Falsy = function(j$) {
'use strict';
function Falsy() {} function Falsy() {}
Falsy.prototype.asymmetricMatch = function(other) { Falsy.prototype.asymmetricMatch = function(other) {

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().Is = function(j$) { getJasmineRequireObj().Is = function(j$) {
'use strict';
class Is { class Is {
constructor(expected) { constructor(expected) {
this.expected_ = expected; this.expected_ = expected;

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().MapContaining = function(j$) { getJasmineRequireObj().MapContaining = function(j$) {
'use strict';
function MapContaining(sample) { function MapContaining(sample) {
if (!j$.private.isMap(sample)) { if (!j$.private.isMap(sample)) {
throw new Error( throw new Error(

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().NotEmpty = function(j$) { getJasmineRequireObj().NotEmpty = function(j$) {
'use strict';
function NotEmpty() {} function NotEmpty() {}
NotEmpty.prototype.asymmetricMatch = function(other) { NotEmpty.prototype.asymmetricMatch = function(other) {

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().ObjectContaining = function(j$) { getJasmineRequireObj().ObjectContaining = function(j$) {
'use strict';
function ObjectContaining(sample) { function ObjectContaining(sample) {
this.sample = sample; this.sample = sample;
} }

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().SetContaining = function(j$) { getJasmineRequireObj().SetContaining = function(j$) {
'use strict';
function SetContaining(sample) { function SetContaining(sample) {
if (!j$.private.isSet(sample)) { if (!j$.private.isSet(sample)) {
throw new Error( throw new Error(

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().StringContaining = function(j$) { getJasmineRequireObj().StringContaining = function(j$) {
'use strict';
function StringContaining(expected) { function StringContaining(expected) {
if (!j$.private.isString(expected)) { if (!j$.private.isString(expected)) {
throw new Error('Expected is not a String'); throw new Error('Expected is not a String');

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().StringMatching = function(j$) { getJasmineRequireObj().StringMatching = function(j$) {
'use strict';
function StringMatching(expected) { function StringMatching(expected) {
if (!j$.private.isString(expected) && !j$.private.isA('RegExp', expected)) { if (!j$.private.isString(expected) && !j$.private.isA('RegExp', expected)) {
throw new Error('Expected is not a String or a RegExp'); throw new Error('Expected is not a String or a RegExp');

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().Truthy = function(j$) { getJasmineRequireObj().Truthy = function(j$) {
'use strict';
function Truthy() {} function Truthy() {}
Truthy.prototype.asymmetricMatch = function(other) { Truthy.prototype.asymmetricMatch = function(other) {

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().base = function(j$, jasmineGlobal) { getJasmineRequireObj().base = function(j$, jasmineGlobal) {
'use strict';
/** /**
* Maximum object depth the pretty printer will print to. * Maximum object depth the pretty printer will print to.
* Set this to a lower value to speed up pretty printing if you have large objects. * Set this to a lower value to speed up pretty printing if you have large objects.

View File

@@ -1,5 +1,7 @@
//TODO: expectation result may make more sense as a presentation of an expectation. //TODO: expectation result may make more sense as a presentation of an expectation.
getJasmineRequireObj().buildExpectationResult = function(j$) { getJasmineRequireObj().buildExpectationResult = function(j$) {
'use strict';
function buildExpectationResult(options) { function buildExpectationResult(options) {
const exceptionFormatter = new j$.private.ExceptionFormatter(); const exceptionFormatter = new j$.private.ExceptionFormatter();

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().errors = function() { getJasmineRequireObj().errors = function() {
'use strict';
function ExpectationFailed() {} function ExpectationFailed() {}
ExpectationFailed.prototype = new Error(); ExpectationFailed.prototype = new Error();

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().formatErrorMsg = function() { getJasmineRequireObj().formatErrorMsg = function() {
'use strict';
function generateErrorMsg(domain, usage) { function generateErrorMsg(domain, usage) {
const usageDefinition = usage ? '\nUsage: ' + usage : ''; const usageDefinition = usage ? '\nUsage: ' + usage : '';

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().DiffBuilder = function(j$) { getJasmineRequireObj().DiffBuilder = function(j$) {
'use strict';
class DiffBuilder { class DiffBuilder {
constructor(config) { constructor(config) {
this.prettyPrinter_ = this.prettyPrinter_ =

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().MismatchTree = function(j$) { getJasmineRequireObj().MismatchTree = function(j$) {
'use strict';
/* /*
To be able to apply custom object formatters at all possible levels of an To be able to apply custom object formatters at all possible levels of an
object graph, DiffBuilder needs to be able to know not just where the object graph, DiffBuilder needs to be able to know not just where the

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().NullDiffBuilder = function(j$) { getJasmineRequireObj().NullDiffBuilder = function(j$) {
'use strict';
return function() { return function() {
return { return {
withPath: function(_, block) { withPath: function(_, block) {

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().ObjectPath = function(j$) { getJasmineRequireObj().ObjectPath = function(j$) {
'use strict';
class ObjectPath { class ObjectPath {
constructor(components) { constructor(components) {
this.components = components || []; this.components = components || [];

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().toBePending = function(j$) { getJasmineRequireObj().toBePending = function(j$) {
'use strict';
/** /**
* Expect a promise to be pending, i.e. the promise is neither resolved nor rejected. * Expect a promise to be pending, i.e. the promise is neither resolved nor rejected.
* @function * @function

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().toBeRejected = function(j$) { getJasmineRequireObj().toBeRejected = function(j$) {
'use strict';
/** /**
* Expect a promise to be rejected. * Expect a promise to be rejected.
* @function * @function

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().toBeRejectedWith = function(j$) { getJasmineRequireObj().toBeRejectedWith = function(j$) {
'use strict';
/** /**
* Expect a promise to be rejected with a value equal to the expected, using deep equality comparison. * Expect a promise to be rejected with a value equal to the expected, using deep equality comparison.
* @function * @function

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().toBeRejectedWithError = function(j$) { getJasmineRequireObj().toBeRejectedWithError = function(j$) {
'use strict';
/** /**
* Expect a promise to be rejected with a value matched to the expected * Expect a promise to be rejected with a value matched to the expected
* @function * @function

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().toBeResolved = function(j$) { getJasmineRequireObj().toBeResolved = function(j$) {
'use strict';
/** /**
* Expect a promise to be resolved. * Expect a promise to be resolved.
* @function * @function

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().toBeResolvedTo = function(j$) { getJasmineRequireObj().toBeResolvedTo = function(j$) {
'use strict';
/** /**
* Expect a promise to be resolved to a value equal to the expected, using deep equality comparison. * Expect a promise to be resolved to a value equal to the expected, using deep equality comparison.
* @function * @function

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().MatchersUtil = function(j$) { getJasmineRequireObj().MatchersUtil = function(j$) {
'use strict';
/** /**
* @class MatchersUtil * @class MatchersUtil
* @classdesc Utilities for use in implementing matchers.<br> * @classdesc Utilities for use in implementing matchers.<br>

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().nothing = function() { getJasmineRequireObj().nothing = function() {
'use strict';
/** /**
* {@link expect} nothing explicitly. * {@link expect} nothing explicitly.
* @function * @function

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().requireAsyncMatchers = function(jRequire, j$) { getJasmineRequireObj().requireAsyncMatchers = function(jRequire, j$) {
'use strict';
const availableMatchers = [ const availableMatchers = [
'toBePending', 'toBePending',
'toBeResolved', 'toBeResolved',

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().requireMatchers = function(jRequire, j$) { getJasmineRequireObj().requireMatchers = function(jRequire, j$) {
'use strict';
const availableMatchers = [ const availableMatchers = [
'nothing', 'nothing',
'toBe', 'toBe',

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().toBe = function(j$) { getJasmineRequireObj().toBe = function(j$) {
'use strict';
/** /**
* {@link expect} the actual value to be `===` to the expected value. * {@link expect} the actual value to be `===` to the expected value.
* @function * @function

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().toBeCloseTo = function() { getJasmineRequireObj().toBeCloseTo = function() {
'use strict';
/** /**
* {@link expect} the actual value to be within a specified precision of the expected value. * {@link expect} the actual value to be within a specified precision of the expected value.
* @function * @function

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().toBeDefined = function() { getJasmineRequireObj().toBeDefined = function() {
'use strict';
/** /**
* {@link expect} the actual value to be defined. (Not `undefined`) * {@link expect} the actual value to be defined. (Not `undefined`)
* @function * @function

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().toBeFalse = function() { getJasmineRequireObj().toBeFalse = function() {
'use strict';
/** /**
* {@link expect} the actual value to be `false`. * {@link expect} the actual value to be `false`.
* @function * @function

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().toBeFalsy = function() { getJasmineRequireObj().toBeFalsy = function() {
'use strict';
/** /**
* {@link expect} the actual value to be falsy * {@link expect} the actual value to be falsy
* @function * @function

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().toBeGreaterThan = function() { getJasmineRequireObj().toBeGreaterThan = function() {
'use strict';
/** /**
* {@link expect} the actual value to be greater than the expected value. * {@link expect} the actual value to be greater than the expected value.
* @function * @function

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().toBeGreaterThanOrEqual = function() { getJasmineRequireObj().toBeGreaterThanOrEqual = function() {
'use strict';
/** /**
* {@link expect} the actual value to be greater than or equal to the expected value. * {@link expect} the actual value to be greater than or equal to the expected value.
* @function * @function

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().toBeInstanceOf = function(j$) { getJasmineRequireObj().toBeInstanceOf = function(j$) {
'use strict';
const usageError = j$.private.formatErrorMsg( const usageError = j$.private.formatErrorMsg(
'<toBeInstanceOf>', '<toBeInstanceOf>',
'expect(value).toBeInstanceOf(<ConstructorFunction>)' 'expect(value).toBeInstanceOf(<ConstructorFunction>)'

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().toBeLessThan = function() { getJasmineRequireObj().toBeLessThan = function() {
'use strict';
/** /**
* {@link expect} the actual value to be less than the expected value. * {@link expect} the actual value to be less than the expected value.
* @function * @function

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().toBeLessThanOrEqual = function() { getJasmineRequireObj().toBeLessThanOrEqual = function() {
'use strict';
/** /**
* {@link expect} the actual value to be less than or equal to the expected value. * {@link expect} the actual value to be less than or equal to the expected value.
* @function * @function

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().toBeNaN = function(j$) { getJasmineRequireObj().toBeNaN = function(j$) {
'use strict';
/** /**
* {@link expect} the actual value to be `NaN` (Not a Number). * {@link expect} the actual value to be `NaN` (Not a Number).
* @function * @function

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().toBeNegativeInfinity = function(j$) { getJasmineRequireObj().toBeNegativeInfinity = function(j$) {
'use strict';
/** /**
* {@link expect} the actual value to be `-Infinity` (-infinity). * {@link expect} the actual value to be `-Infinity` (-infinity).
* @function * @function

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().toBeNull = function() { getJasmineRequireObj().toBeNull = function() {
'use strict';
/** /**
* {@link expect} the actual value to be `null`. * {@link expect} the actual value to be `null`.
* @function * @function

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().toBeNullish = function() { getJasmineRequireObj().toBeNullish = function() {
'use strict';
/** /**
* {@link expect} the actual value to be `null` or `undefined`. * {@link expect} the actual value to be `null` or `undefined`.
* @function * @function

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().toBePositiveInfinity = function(j$) { getJasmineRequireObj().toBePositiveInfinity = function(j$) {
'use strict';
/** /**
* {@link expect} the actual value to be `Infinity` (infinity). * {@link expect} the actual value to be `Infinity` (infinity).
* @function * @function

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().toBeTrue = function() { getJasmineRequireObj().toBeTrue = function() {
'use strict';
/** /**
* {@link expect} the actual value to be `true`. * {@link expect} the actual value to be `true`.
* @function * @function

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().toBeTruthy = function() { getJasmineRequireObj().toBeTruthy = function() {
'use strict';
/** /**
* {@link expect} the actual value to be truthy. * {@link expect} the actual value to be truthy.
* @function * @function

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().toBeUndefined = function() { getJasmineRequireObj().toBeUndefined = function() {
'use strict';
/** /**
* {@link expect} the actual value to be `undefined`. * {@link expect} the actual value to be `undefined`.
* @function * @function

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().toContain = function() { getJasmineRequireObj().toContain = function() {
'use strict';
/** /**
* {@link expect} the actual value to contain a specific value. * {@link expect} the actual value to contain a specific value.
* @function * @function

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().toEqual = function(j$) { getJasmineRequireObj().toEqual = function(j$) {
'use strict';
/** /**
* {@link expect} the actual value to be equal to the expected, using deep equality comparison. * {@link expect} the actual value to be equal to the expected, using deep equality comparison.
* @function * @function

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().toHaveBeenCalled = function(j$) { getJasmineRequireObj().toHaveBeenCalled = function(j$) {
'use strict';
const getErrorMsg = j$.private.formatErrorMsg( const getErrorMsg = j$.private.formatErrorMsg(
'<toHaveBeenCalled>', '<toHaveBeenCalled>',
'expect(<spyObj>).toHaveBeenCalled()' 'expect(<spyObj>).toHaveBeenCalled()'

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().toHaveBeenCalledBefore = function(j$) { getJasmineRequireObj().toHaveBeenCalledBefore = function(j$) {
'use strict';
const getErrorMsg = j$.private.formatErrorMsg( const getErrorMsg = j$.private.formatErrorMsg(
'<toHaveBeenCalledBefore>', '<toHaveBeenCalledBefore>',
'expect(<spyObj>).toHaveBeenCalledBefore(<spyObj>)' 'expect(<spyObj>).toHaveBeenCalledBefore(<spyObj>)'

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().toHaveBeenCalledOnceWith = function(j$) { getJasmineRequireObj().toHaveBeenCalledOnceWith = function(j$) {
'use strict';
const getErrorMsg = j$.private.formatErrorMsg( const getErrorMsg = j$.private.formatErrorMsg(
'<toHaveBeenCalledOnceWith>', '<toHaveBeenCalledOnceWith>',
'expect(<spyObj>).toHaveBeenCalledOnceWith(...arguments)' 'expect(<spyObj>).toHaveBeenCalledOnceWith(...arguments)'

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().toHaveBeenCalledTimes = function(j$) { getJasmineRequireObj().toHaveBeenCalledTimes = function(j$) {
'use strict';
const getErrorMsg = j$.private.formatErrorMsg( const getErrorMsg = j$.private.formatErrorMsg(
'<toHaveBeenCalledTimes>', '<toHaveBeenCalledTimes>',
'expect(<spyObj>).toHaveBeenCalledTimes(<Number>)' 'expect(<spyObj>).toHaveBeenCalledTimes(<Number>)'

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().toHaveBeenCalledWith = function(j$) { getJasmineRequireObj().toHaveBeenCalledWith = function(j$) {
'use strict';
const getErrorMsg = j$.private.formatErrorMsg( const getErrorMsg = j$.private.formatErrorMsg(
'<toHaveBeenCalledWith>', '<toHaveBeenCalledWith>',
'expect(<spyObj>).toHaveBeenCalledWith(...arguments)' 'expect(<spyObj>).toHaveBeenCalledWith(...arguments)'

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().toHaveClass = function(j$) { getJasmineRequireObj().toHaveClass = function(j$) {
'use strict';
/** /**
* {@link expect} the actual value to be a DOM element that has the expected class * {@link expect} the actual value to be a DOM element that has the expected class
* @function * @function

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().toHaveClasses = function(j$) { getJasmineRequireObj().toHaveClasses = function(j$) {
'use strict';
/** /**
* {@link expect} the actual value to be a DOM element that has the expected classes * {@link expect} the actual value to be a DOM element that has the expected classes
* @function * @function

Some files were not shown because too many files have changed in this diff Show More