Andrei D
a1591da25d
improved error msg on toBeRehectedWithError and all other built-in async matchers
2024-12-22 17:43:47 +02:00
Steve Gravrock
1f1e1209d2
Merge branch 'add_toBeNullish' of https://github.com/MattMcCherry/jasmine
...
* Merges #2045 from @MattMcCherry
2024-12-12 17:30:55 -08:00
Alex Yorkovich
819fab7b58
simplified match condition
2024-12-07 13:14:25 -06:00
Alex Yorkovich
c3650ea7c7
updated release number
2024-12-04 12:34:36 -06:00
Alex Yorkovich
1805337424
Added new toHaveClasses matcher; tests included
2024-12-04 12:20:15 -06:00
Matt McCherry
580323c221
run prettier and fix tests
2024-12-02 10:34:55 +00:00
Matt McCherry
26dfa6d257
Add .toBeNullish matcher
2024-12-02 10:34:49 +00:00
Steve Gravrock
bd9a3b2305
Include property value mismatches in diffs even when there are missing or extra properties
2024-11-09 11:22:27 -08:00
Steve Gravrock
d0fe5c4712
Require curly braces around loop and conditonal bodies
2024-09-02 11:30:36 -07:00
Stephan Ferlin-Reiter
6f23e706d7
Improve the error message of the toHaveSize matcher.
...
We include the size of the thing that didn't meet the size expectation.
2024-07-02 20:28:16 +00:00
Steve Gravrock
4c13c2b00b
Replaced var with const in API doc examples
2022-09-24 10:12:22 -07:00
Steve Gravrock
96000220b1
Use arrow fns rather than self = this
2022-06-11 12:12:11 -07:00
Steve Gravrock
135ff20123
Replaced uses of var with const/let
2022-06-09 20:00:23 -07:00
Steve Gravrock
751cf6ab5b
Converted DiffBuilder, ObjectPath, MismatchTree, and SinglePrettyPrintRun to ES6 classes
2022-05-14 11:15:08 -07:00
Steve Gravrock
2fd76c954c
Replaced var with let and const in PrettyPrinter, DiffBuilder, and friends
2022-05-14 09:42:07 -07:00
Steve Gravrock
841b212c66
Merge branch 'patch-1' of https://github.com/suke/jasmine
...
* Merges #1963 from @suke
* Excludes non-enumerable symbol properties from equality comparison
2022-05-09 16:51:47 -07:00
Steve Gravrock
9a27407d35
Folded util.objectDifference into MatchersUtil
...
This was always an implementation detail of objectKeysAreDifferentFormatter,
and didn't really do what its name suggested.
* #1966
2022-05-07 14:03:26 -07:00
Steve Gravrock
468e9577cd
Include symbol properties in matcher diffs
...
* #1966
2022-05-07 13:26:15 -07:00
Steve Gravrock
9d80377fe3
Fixed exception when comparing arrays with Symbol keys
...
* Fixes #1966
2022-05-07 10:42:29 -07:00
Steve Gravrock
270344bd38
Include symbol keys when pretty-printing objects
...
* Fixes #1966
2022-05-07 10:05:18 -07:00
suke
dfa94c70c1
toEqual does not compare symbols that cannot be enumerated
2022-04-27 10:51:03 +09:00
Steve Gravrock
04133264e0
Bump version to 4.1.0
2022-04-11 20:24:42 -07:00
Steve Gravrock
fb639d0f55
toBeCloseTo treats Infinity and -Infinity as close to themselves
...
* Fixes #1957
2022-04-09 11:14:24 -07:00
Nito Buendia
c5db939886
Run cleanup
2022-03-17 21:09:14 +08:00
Nito Buendia
e470fb56d7
Refactor error message to account for negate comparisons
...
The message return on negate clause was not expected. This makes it negative to match expectation. This also add tests for the change, and renames some tests to make it more clear.
2022-03-17 21:06:51 +08:00
Nito Buendia
1660015c12
Run formatter
2022-03-16 23:01:20 +08:00
Nito Buendia
faf210ab4c
Remove dependency on matchersUtil for test
2022-03-16 23:00:27 +08:00
Nito Buendia
b2c2e08641
Remove @since tag from JSDoc
2022-03-16 20:15:09 +08:00
Nito Buendia
8e85f3df74
Create toHaveSpyInteractions matcher
...
This matcher checks all the properties of a given spy object and checks whether at least one of the spies has been called. It returns true if one or more of the spies of the spy object has been called and false otherwise.
2022-02-16 21:10:31 +08:00
Steve Gravrock
6e3128c792
Merge branch 'SymboltoEqual' of https://github.com/laeleoni/jasmine
...
* Merges #1879 from @laeleoni
* Fixes #1879
2022-01-15 11:44:53 -08:00
Steve Gravrock
1332f01ca4
Merge branch '3.99' into 4.0
2021-09-23 16:08:44 -07:00
Steve Gravrock
497a7fc3e5
Merge branch 'main' into 3.99
2021-09-23 15:49:47 -07:00
Steve Gravrock
be29aa95eb
Improved jsdocs for asymmetric equality testers
2021-09-23 11:59:20 -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
fe0a83ba87
Removed support for Internet Explorer
2021-07-23 21:46:15 -07:00
Steve Gravrock
c10ab4e704
Updated deprecation links
2021-07-20 16:50:31 -07:00
Steve Gravrock
9b3d4a2bf2
Merge branch '3.99' into 4.0
2021-07-10 09:13:28 -07:00
Steve Gravrock
6cb9507f62
Merge branch 'main' into 3.99
2021-07-10 08:58:14 -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
163f93d6ff
Removed constructors from jsdocs of classes that aren't user-constructable
2021-06-21 14:19:31 -07:00
Steve Gravrock
1893bf6c16
Added jsdocs for asymmetric equality testers
2021-06-21 14:09:14 -07:00
Steve Gravrock
6a2a30d540
Improved & unified deprecation handling
...
* De-duplication now happens in core, not in reporters. This ensures that
the console doesn't get flooded.
* Stack traces are opt-out, not opt-in.
* The current runnable is not reported or logged for certain deprecations
where it's irrelevant.
* HtmlReporter shows stack traces in expandable widgets.
* Env#deprecated and Env#deprecatedOnceWithStack are merged.
2021-05-29 15:39:28 -07:00
Steve Gravrock
c2a714f168
Removed support for IE 10 and Safari 8
2021-04-23 08:14:19 -07:00
Steve Gravrock
4b2a14f1f3
Removed deprecated custom matcher, matchersUtil, pp, etc interfaces
2021-04-22 22:29:20 -07:00
Steve Gravrock
8b3a6561b1
Merge branch 'main' into 3.99
2021-04-02 11:35:30 -07:00
Surgie Finesse
37073e2768
Fix the review notices
2021-03-22 19:26:33 +10:00
Surgie Finesse
f7f928fdd3
Merge remote-tracking branch 'upstream/main' into array_buffer
...
# Conflicts:
# spec/core/matchers/matchersUtilSpec.js
2021-03-22 18:33:50 +10:00
leoni laetitia
3234d475cd
expect...toEqual check for Symbols
2021-01-31 22:32:58 +01:00
Steve Gravrock
89331bb1bb
Fixed comparison between URL objects
...
* Fixes #1866
2020-11-21 13:47:44 -08:00
Steve Gravrock
d27bb8fa96
Run Prettier on all files
2020-09-29 18:05:38 -07:00