Steve Gravrock
d092a59bd1
Treat multiple calls to done callbacks as errors
2021-09-10 18:07:35 -07:00
Steve Gravrock
15f7013f85
Merge branch '3.99' into 4.0
2021-09-08 21:04:10 -07:00
Steve Gravrock
be23836c9d
Deprecate multiple calls to done callbacks
2021-09-08 20:58:25 -07:00
Steve Gravrock
7944250290
Merge branch 'main' into 3.99
2021-09-06 17:39:28 -07:00
Steve Gravrock
3a47a3bd04
Fixed flaky spec
2021-09-06 15:35:37 -07:00
Steve Gravrock
6603ed7ddc
Don't distribute boot src files
...
[#179017951 ]
2021-09-03 15:42:06 -07:00
Steve Gravrock
d61800c5c8
Removed support for custom promise libraries
...
All supported platforms now provide promises, so there's no longer a need
for Jasmine to be able to create them via a user-provided library. Jasmine
can still consume non-native promises but will always use the built-in
Promise object to create promises.
[#179078103 ]
2021-08-30 19:07:26 -07:00
Steve Gravrock
a63b0b0368
Merge branch '3.99' into 4.0
2021-08-30 18:44:32 -07:00
Steve Gravrock
2fd9d7b13f
Merge branch 'main' into 3.99
2021-08-17 17:08:34 -07:00
Steve Gravrock
dd8a65cb60
Better reporting of unhandled promise rejections with truthy but non-Error reasons on Node
...
[#179227413 ]
2021-08-14 14:03:03 -07:00
Steve Gravrock
e72d161fab
Return a promise from Env#execute in environments that support promises
...
[#178373231 ]
2021-08-07 13:05:55 -07:00
Steve Gravrock
4e96514634
Deprecated the Promise config setting
...
4.0 will only support environments that have native promises, so there will
no longer be a need for a user-supplied promise library
2021-08-07 12:04:14 -07:00
Steve Gravrock
d8862aa583
Removed the failFast and oneFailurePerSpec config properties
2021-07-31 09:28:14 -07:00
Steve Gravrock
2480a0a93a
Merge branch '3.99' into 4.0
2021-07-31 09:15:12 -07:00
Steve Gravrock
20b914c554
Deprecated the failFast and oneFailurePerSpec config properties
2021-07-31 08:42:01 -07:00
Steve Gravrock
058e77b824
Merge branch 'main' into 3.99
2021-07-31 08:15:29 -07:00
Steve Gravrock
b696bec9e3
Renamed failFast and oneFailurePerSpec config props to stopOnSpecFailure and stopSpecOnExpectationFailure
...
The new names are more self-explanatory and consistent with jasmine-npm. The
old names are deprecated but still work.
[#178682783 ]
2021-07-31 07:51:50 -07:00
Steve Gravrock
13dfcacbb0
Remove access to non-public properties of suites and specs returned by describe, it, etc.
...
[#179064612 ]
2021-07-30 17:36:50 -07:00
Steve Gravrock
6d002d22af
Merge branch '3.99' into 4.0
2021-07-29 21:46:48 -07:00
Steve Gravrock
799d9897fd
Deprecated access to non-public members in specs and suites returned from it(), describe(), etc.
2021-07-29 21:28:47 -07:00
Steve Gravrock
2a2a671b65
Don't deprecate access to Suite#id and Spec#id
2021-07-29 20:15:04 -07:00
Steve Gravrock
09d2ce9bc9
Removed more code that supported browsers we no longer run on
2021-07-27 17:53:09 -07:00
Steve Gravrock
310e4d5e6c
Removed legacy boot.js file
2021-07-26 18:29:54 -07:00
Steve Gravrock
0720c88252
Merge branch '3.99' into 4.0
2021-07-26 18:20:24 -07:00
Steve Gravrock
1206952ca6
Merge branch 'main' into 3.99
2021-07-26 18:19:11 -07:00
Steve Gravrock
286524959b
Split boot.js in two to allow the env to be configured in between
...
This is mainly intended to support jasmine-browser-runner, which will load
a script that configures the env in between the two boot files (boot0.js and
boot1.js). The single-file boot.js is retained for now but will be removed
in a future release.
2021-07-26 18:05:36 -07:00
Steve Gravrock
c73df57720
MatchersUtil#contains uses deep equality rather than === for set members
...
[#169001712 ]
2021-07-24 14:23:05 -07:00
Steve Gravrock
0170005015
Treat any argument to the done callback as an error
...
This reduces the risk of incorrectly passing a spec due to not correctly
detecting that an argument is an `Error` instance. Detecting Error instances
in a way that's reliable and portable across different browsers, TrustedTypes,
and frames is difficult.
[Finishes #178267587 ]
2021-07-24 09:30:39 -07:00
Steve Gravrock
6f04044417
Merge branch '3.99' into 4.0
2021-07-24 09:25:19 -07:00
Steve Gravrock
70d49e5b57
Deprecate non-Error arguments passed to done()
...
[Finishes #178267600 ]
2021-07-24 09:18:24 -07:00
Steve Gravrock
fe0a83ba87
Removed support for Internet Explorer
2021-07-23 21:46:15 -07:00
Steve Gravrock
623eecdcec
Removed json2.js
...
Environments that don't provide a JSON parser are ancient history.
2021-07-22 21:37:57 -07:00
Steve Gravrock
a27280e9e7
Merge branch '3.99' into 4.0
2021-07-20 17:55:18 -07:00
Steve Gravrock
10601f5af6
Merge branch 'main' into 3.99
2021-07-20 17:47:17 -07:00
Steve Gravrock
c10ab4e704
Updated deprecation links
2021-07-20 16:50:31 -07:00
Steve Gravrock
88b90ec258
Backfilled unit tests for j$.isError_
2021-07-19 10:31:53 -07:00
Steve Gravrock
9b3d4a2bf2
Merge branch '3.99' into 4.0
2021-07-10 09:13:28 -07:00
Steve Gravrock
17826cd044
Fixed deprecations in matchersUtilSpec
2021-07-10 09:11:10 -07:00
Steve Gravrock
6cb9507f62
Merge branch 'main' into 3.99
2021-07-10 08:58:14 -07:00
Steve Gravrock
3e64ce3310
Removed property tests for MatchersUtil#equals
...
These might be useful for a function with a more restricted domain. But for
equals, which accepts two of literally anything, the short run was too short
to catch any problems and the long run tended to exceed the CircleCi timeout.
2021-07-03 08:37:15 -07:00
Joris Stolwijk
e4c7d8af45
new attempt for fixing #1906 : add window.location.pathname to hrefs + comments + fixed tests
2021-06-29 14:03:25 +02:00
Steve Gravrock
ee88ecc614
Revert "add url pathName in toQueryString function - fixes ( https://github.com/jasmine/jasmine/issues/1906 ) + comment + test"
...
Reverted because it breaks the option checkboxes in the HTML reporter, both
in the standalone distribution and in jasmine-browser-runner.
Reopens #1906 .
This reverts commit 1e4f0d1545 .
2021-06-28 12:42:05 -07:00
Steve Gravrock
dbc1a0aa56
Added expectAsync(...).already
...
* Causes async matchers to immediately fail if the promise is pending
* Fixes #1845
2021-06-23 20:13:01 -07:00
Steve Gravrock
5862b22aef
Include rejection details in failure messages for toBeResolved and toBeResolvedWith
...
[#178559119 ]
2021-06-21 16:43:51 -07:00
Steve Gravrock
68db3f6fcf
Merge branch 'select-spec' of https://github.com/jlpstolwijk/jasmine into main
...
* Merges #1907 from @jlpstolwijk
* Fixes #1906
* Fixes spec filtering in karma-jasmine-html-reporter
2021-06-14 17:59:29 -07:00
Joris Stolwijk
1e4f0d1545
add url pathName in toQueryString function - fixes ( https://github.com/jasmine/jasmine/issues/1906 ) + comment + test
2021-06-14 15:05:12 +02:00
Steve Gravrock
c546d2cb6d
Merge branch 'patch-1' of https://github.com/eltociear/jasmine into main
...
* Fixes typo in spec name
* Merges #1918 from @eltociear
2021-06-13 09:57:23 -07:00
Steve Gravrock
6e097528f5
Include only specified files in the NPM package
2021-06-13 09:52:01 -07:00
Ikko Ashimine
4e1f36cbb0
Fix typo in SpySpec.js
...
ommitted -> omitted
2021-06-12 10:00:36 +09:00
Steve Gravrock
0aee81cfb9
Remvoed checks for typed array support in the test suite
...
All supported browsers have all typed arrays except for Uint8ClampedArray,
BigInt64Array, and BigUint64Array.
2021-06-05 13:31:26 -07:00