jasmine-core 6.0.0-beta.1 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/lib/jasmine-core/boot0.js +1 -1
- package/lib/jasmine-core/boot1.js +1 -1
- package/lib/jasmine-core/jasmine-html.js +1 -1
- package/lib/jasmine-core/jasmine.js +28 -7
- package/lib/jasmine-core.js +1 -1
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Copyright (c) 2008-2019 Pivotal Labs
|
|
2
|
-
Copyright (c) 2008-
|
|
2
|
+
Copyright (c) 2008-2026 The Jasmine developers
|
|
3
3
|
|
|
4
4
|
Permission is hereby granted, free of charge, to any person obtaining
|
|
5
5
|
a copy of this software and associated documentation files (the
|
package/README.md
CHANGED
|
@@ -60,5 +60,5 @@ To find out what environments work with a particular Jasmine release, see the [r
|
|
|
60
60
|
* Sheel Choksi
|
|
61
61
|
|
|
62
62
|
Copyright (c) 2008-2019 Pivotal Labs<br>
|
|
63
|
-
Copyright (c) 2008-
|
|
63
|
+
Copyright (c) 2008-2026 The Jasmine developers<br>
|
|
64
64
|
This software is licensed under the [MIT License](https://github.com/jasmine/jasmine/blob/main/LICENSE).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
Copyright (c) 2008-2019 Pivotal Labs
|
|
3
|
-
Copyright (c) 2008-
|
|
3
|
+
Copyright (c) 2008-2026 The Jasmine developers
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
6
|
a copy of this software and associated documentation files (the
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
Copyright (c) 2008-2019 Pivotal Labs
|
|
3
|
-
Copyright (c) 2008-
|
|
3
|
+
Copyright (c) 2008-2026 The Jasmine developers
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
6
|
a copy of this software and associated documentation files (the
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
Copyright (c) 2008-2019 Pivotal Labs
|
|
3
|
-
Copyright (c) 2008-
|
|
3
|
+
Copyright (c) 2008-2026 The Jasmine developers
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
6
|
a copy of this software and associated documentation files (the
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
Copyright (c) 2008-2019 Pivotal Labs
|
|
3
|
-
Copyright (c) 2008-
|
|
3
|
+
Copyright (c) 2008-2026 The Jasmine developers
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
6
|
a copy of this software and associated documentation files (the
|
|
@@ -3870,7 +3870,7 @@ getJasmineRequireObj().deprecateMonkeyPatching = function(j$) {
|
|
|
3870
3870
|
},
|
|
3871
3871
|
set(newValue) {
|
|
3872
3872
|
j$.getEnv().deprecated(
|
|
3873
|
-
'Monkey patching detected.
|
|
3873
|
+
'Monkey patching detected. Code that overwrites parts of Jasmine, except globala and other properties that are documented as writeable, is not supported and will break in a future release.'
|
|
3874
3874
|
);
|
|
3875
3875
|
value = newValue;
|
|
3876
3876
|
}
|
|
@@ -8961,7 +8961,6 @@ getJasmineRequireObj().reporterEvents = function(j$) {
|
|
|
8961
8961
|
* {@link ReporterCapabilities} will apply.
|
|
8962
8962
|
* @name Reporter#reporterCapabilities
|
|
8963
8963
|
* @type ReporterCapabilities | undefined
|
|
8964
|
-
* @optional
|
|
8965
8964
|
* @since 5.0
|
|
8966
8965
|
*/
|
|
8967
8966
|
/**
|
|
@@ -9028,7 +9027,6 @@ getJasmineRequireObj().reporterEvents = function(j$) {
|
|
|
9028
9027
|
/**
|
|
9029
9028
|
* `specStarted` is invoked when an `it` starts to run (including associated `beforeEach` functions)
|
|
9030
9029
|
* @function
|
|
9031
|
-
* @optional
|
|
9032
9030
|
* @name Reporter#specStarted
|
|
9033
9031
|
* @param {SpecStartedEvent} result Information about the individual {@link it} being run
|
|
9034
9032
|
* @param {Function} [done] Used to specify to Jasmine that this callback is asynchronous and Jasmine should wait until it has been called before moving on.
|
|
@@ -9075,6 +9073,7 @@ getJasmineRequireObj().interface = function(jasmine, env) {
|
|
|
9075
9073
|
* @since 1.3.0
|
|
9076
9074
|
* @function
|
|
9077
9075
|
* @global
|
|
9076
|
+
* @overwritable
|
|
9078
9077
|
* @param {String} description Textual description of the group
|
|
9079
9078
|
* @param {Function} specDefinitions Function for Jasmine to invoke that will define inner suites and specs
|
|
9080
9079
|
*/
|
|
@@ -9090,6 +9089,7 @@ getJasmineRequireObj().interface = function(jasmine, env) {
|
|
|
9090
9089
|
* @since 1.3.0
|
|
9091
9090
|
* @function
|
|
9092
9091
|
* @global
|
|
9092
|
+
* @overwritable
|
|
9093
9093
|
* @param {String} description Textual description of the group
|
|
9094
9094
|
* @param {Function} specDefinitions Function for Jasmine to invoke that will define inner suites and specs
|
|
9095
9095
|
*/
|
|
@@ -9106,6 +9106,7 @@ getJasmineRequireObj().interface = function(jasmine, env) {
|
|
|
9106
9106
|
* @since 2.1.0
|
|
9107
9107
|
* @function
|
|
9108
9108
|
* @global
|
|
9109
|
+
* @overwritable
|
|
9109
9110
|
* @param {String} description Textual description of the group
|
|
9110
9111
|
* @param {Function} specDefinitions Function for Jasmine to invoke that will define inner suites and specs
|
|
9111
9112
|
*/
|
|
@@ -9124,6 +9125,7 @@ getJasmineRequireObj().interface = function(jasmine, env) {
|
|
|
9124
9125
|
* @since 1.3.0
|
|
9125
9126
|
* @function
|
|
9126
9127
|
* @global
|
|
9128
|
+
* @overwritable
|
|
9127
9129
|
* @param {String} description Textual description of what this spec is checking
|
|
9128
9130
|
* @param {implementationCallback} [testFunction] Function that contains the code of your test. If not provided the test will be `pending`.
|
|
9129
9131
|
* @param {Int} [timeout={@link jasmine.DEFAULT_TIMEOUT_INTERVAL}] Custom timeout for an async spec.
|
|
@@ -9141,6 +9143,7 @@ getJasmineRequireObj().interface = function(jasmine, env) {
|
|
|
9141
9143
|
* @since 1.3.0
|
|
9142
9144
|
* @function
|
|
9143
9145
|
* @global
|
|
9146
|
+
* @overwritable
|
|
9144
9147
|
* @param {String} description Textual description of what this spec is checking.
|
|
9145
9148
|
* @param {implementationCallback} [testFunction] Function that contains the code of your test. Will not be executed.
|
|
9146
9149
|
*/
|
|
@@ -9156,6 +9159,7 @@ getJasmineRequireObj().interface = function(jasmine, env) {
|
|
|
9156
9159
|
* @since 2.1.0
|
|
9157
9160
|
* @function
|
|
9158
9161
|
* @global
|
|
9162
|
+
* @overwritable
|
|
9159
9163
|
* @param {String} description Textual description of what this spec is checking.
|
|
9160
9164
|
* @param {implementationCallback} testFunction Function that contains the code of your test.
|
|
9161
9165
|
* @param {Int} [timeout={@link jasmine.DEFAULT_TIMEOUT_INTERVAL}] Custom timeout for an async spec.
|
|
@@ -9171,6 +9175,7 @@ getJasmineRequireObj().interface = function(jasmine, env) {
|
|
|
9171
9175
|
* @since 1.3.0
|
|
9172
9176
|
* @function
|
|
9173
9177
|
* @global
|
|
9178
|
+
* @overwritable
|
|
9174
9179
|
* @param {implementationCallback} [function] Function that contains the code to setup your specs.
|
|
9175
9180
|
* @param {Int} [timeout={@link jasmine.DEFAULT_TIMEOUT_INTERVAL}] Custom timeout for an async beforeEach.
|
|
9176
9181
|
* @see async
|
|
@@ -9185,6 +9190,7 @@ getJasmineRequireObj().interface = function(jasmine, env) {
|
|
|
9185
9190
|
* @since 1.3.0
|
|
9186
9191
|
* @function
|
|
9187
9192
|
* @global
|
|
9193
|
+
* @overwritable
|
|
9188
9194
|
* @param {implementationCallback} [function] Function that contains the code to teardown your specs.
|
|
9189
9195
|
* @param {Int} [timeout={@link jasmine.DEFAULT_TIMEOUT_INTERVAL}] Custom timeout for an async afterEach.
|
|
9190
9196
|
* @see async
|
|
@@ -9201,6 +9207,7 @@ getJasmineRequireObj().interface = function(jasmine, env) {
|
|
|
9201
9207
|
* @since 2.1.0
|
|
9202
9208
|
* @function
|
|
9203
9209
|
* @global
|
|
9210
|
+
* @overwritable
|
|
9204
9211
|
* @param {implementationCallback} [function] Function that contains the code to setup your specs.
|
|
9205
9212
|
* @param {Int} [timeout={@link jasmine.DEFAULT_TIMEOUT_INTERVAL}] Custom timeout for an async beforeAll.
|
|
9206
9213
|
* @see async
|
|
@@ -9217,6 +9224,7 @@ getJasmineRequireObj().interface = function(jasmine, env) {
|
|
|
9217
9224
|
* @since 2.1.0
|
|
9218
9225
|
* @function
|
|
9219
9226
|
* @global
|
|
9227
|
+
* @overwritable
|
|
9220
9228
|
* @param {implementationCallback} [function] Function that contains the code to teardown your specs.
|
|
9221
9229
|
* @param {Int} [timeout={@link jasmine.DEFAULT_TIMEOUT_INTERVAL}] Custom timeout for an async afterAll.
|
|
9222
9230
|
* @see async
|
|
@@ -9230,6 +9238,8 @@ getJasmineRequireObj().interface = function(jasmine, env) {
|
|
|
9230
9238
|
* @name getSpecProperty
|
|
9231
9239
|
* @since 5.10.0
|
|
9232
9240
|
* @function
|
|
9241
|
+
* @global
|
|
9242
|
+
* @overwritable
|
|
9233
9243
|
* @param {String} key The name of the property
|
|
9234
9244
|
* @returns {*} The value of the property
|
|
9235
9245
|
*/
|
|
@@ -9242,6 +9252,8 @@ getJasmineRequireObj().interface = function(jasmine, env) {
|
|
|
9242
9252
|
* @name setSpecProperty
|
|
9243
9253
|
* @since 3.6.0
|
|
9244
9254
|
* @function
|
|
9255
|
+
* @global
|
|
9256
|
+
* @overwritable
|
|
9245
9257
|
* @param {String} key The name of the property
|
|
9246
9258
|
* @param {*} value The value of the property
|
|
9247
9259
|
*/
|
|
@@ -9254,6 +9266,8 @@ getJasmineRequireObj().interface = function(jasmine, env) {
|
|
|
9254
9266
|
* @name setSuiteProperty
|
|
9255
9267
|
* @since 3.6.0
|
|
9256
9268
|
* @function
|
|
9269
|
+
* @global
|
|
9270
|
+
* @overwritable
|
|
9257
9271
|
* @param {String} key The name of the property
|
|
9258
9272
|
* @param {*} value The value of the property
|
|
9259
9273
|
*/
|
|
@@ -9267,6 +9281,7 @@ getJasmineRequireObj().interface = function(jasmine, env) {
|
|
|
9267
9281
|
* @since 1.3.0
|
|
9268
9282
|
* @function
|
|
9269
9283
|
* @global
|
|
9284
|
+
* @overwritable
|
|
9270
9285
|
* @param {Object} actual - Actual computed value to test expectations against.
|
|
9271
9286
|
* @return {matchers}
|
|
9272
9287
|
*/
|
|
@@ -9283,6 +9298,7 @@ getJasmineRequireObj().interface = function(jasmine, env) {
|
|
|
9283
9298
|
* @since 3.3.0
|
|
9284
9299
|
* @function
|
|
9285
9300
|
* @global
|
|
9301
|
+
* @overwritable
|
|
9286
9302
|
* @param {Object} actual - Actual computed value to test expectations against.
|
|
9287
9303
|
* @return {async-matchers}
|
|
9288
9304
|
* @example
|
|
@@ -9309,8 +9325,8 @@ getJasmineRequireObj().interface = function(jasmine, env) {
|
|
|
9309
9325
|
* @name throwUnlessAsync
|
|
9310
9326
|
* @since 5.1.0
|
|
9311
9327
|
* @function
|
|
9312
|
-
* @param actual
|
|
9313
9328
|
* @global
|
|
9329
|
+
* @overwritable
|
|
9314
9330
|
* @param {Object} actual - Actual computed value to test expectations against.
|
|
9315
9331
|
* @return {matchers}
|
|
9316
9332
|
*/
|
|
@@ -9333,8 +9349,8 @@ getJasmineRequireObj().interface = function(jasmine, env) {
|
|
|
9333
9349
|
* @name throwUnless
|
|
9334
9350
|
* @since 5.1.0
|
|
9335
9351
|
* @function
|
|
9336
|
-
* @param actual
|
|
9337
9352
|
* @global
|
|
9353
|
+
* @overwritable
|
|
9338
9354
|
* @param {Object} actual - Actual computed value to test expectations against.
|
|
9339
9355
|
* @return {matchers}
|
|
9340
9356
|
*/
|
|
@@ -9348,6 +9364,7 @@ getJasmineRequireObj().interface = function(jasmine, env) {
|
|
|
9348
9364
|
* @since 2.0.0
|
|
9349
9365
|
* @function
|
|
9350
9366
|
* @global
|
|
9367
|
+
* @overwritable
|
|
9351
9368
|
* @param {String} [message] - Reason the spec is pending.
|
|
9352
9369
|
*/
|
|
9353
9370
|
pending: function() {
|
|
@@ -9360,6 +9377,7 @@ getJasmineRequireObj().interface = function(jasmine, env) {
|
|
|
9360
9377
|
* @since 2.1.0
|
|
9361
9378
|
* @function
|
|
9362
9379
|
* @global
|
|
9380
|
+
* @overwritable
|
|
9363
9381
|
* @param {String|Error} [error] - Reason for the failure.
|
|
9364
9382
|
*/
|
|
9365
9383
|
fail: function() {
|
|
@@ -9372,6 +9390,7 @@ getJasmineRequireObj().interface = function(jasmine, env) {
|
|
|
9372
9390
|
* @since 1.3.0
|
|
9373
9391
|
* @function
|
|
9374
9392
|
* @global
|
|
9393
|
+
* @overwritable
|
|
9375
9394
|
* @param {Object} obj - The object upon which to install the {@link Spy}.
|
|
9376
9395
|
* @param {String} methodName - The name of the method to replace with a {@link Spy}.
|
|
9377
9396
|
* @returns {Spy}
|
|
@@ -9386,6 +9405,7 @@ getJasmineRequireObj().interface = function(jasmine, env) {
|
|
|
9386
9405
|
* @since 2.6.0
|
|
9387
9406
|
* @function
|
|
9388
9407
|
* @global
|
|
9408
|
+
* @overwritable
|
|
9389
9409
|
* @param {Object} obj - The object upon which to install the {@link Spy}
|
|
9390
9410
|
* @param {String} propertyName - The name of the property to replace with a {@link Spy}.
|
|
9391
9411
|
* @param {String} [accessType=get] - The access type (get|set) of the property to {@link Spy} on.
|
|
@@ -9401,6 +9421,7 @@ getJasmineRequireObj().interface = function(jasmine, env) {
|
|
|
9401
9421
|
* @since 3.2.1
|
|
9402
9422
|
* @function
|
|
9403
9423
|
* @global
|
|
9424
|
+
* @overwritable
|
|
9404
9425
|
* @param {Object} obj - The object upon which to install the {@link Spy}s
|
|
9405
9426
|
* @param {boolean} includeNonEnumerable - Whether or not to add spies to non-enumerable properties
|
|
9406
9427
|
* @returns {Object} the spied object
|
|
@@ -12385,5 +12406,5 @@ getJasmineRequireObj().UserContext = function(j$) {
|
|
|
12385
12406
|
};
|
|
12386
12407
|
|
|
12387
12408
|
getJasmineRequireObj().version = function() {
|
|
12388
|
-
return '6.0.0
|
|
12409
|
+
return '6.0.0';
|
|
12389
12410
|
};
|
package/lib/jasmine-core.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
Copyright (c) 2008-2019 Pivotal Labs
|
|
3
|
-
Copyright (c) 2008-
|
|
3
|
+
Copyright (c) 2008-2026 The Jasmine developers
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
6
|
a copy of this software and associated documentation files (the
|