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

View File

@@ -1,3 +1,5 @@
'use strict';
/**
This file starts the process of "booting" Jasmine. It initializes Jasmine,
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
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.
* @module jasmine-core

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().JsApiReporter = function(j$) {
'use strict';
/**
* @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.

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().base = function(j$, jasmineGlobal) {
'use strict';
/**
* 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.

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,4 +1,6 @@
getJasmineRequireObj().MismatchTree = function(j$) {
'use strict';
/*
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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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