Steve Gravrock
2d07b3e6d7
Removed protections against user code redefining undefined
...
Jasmine hasn't even run on platforms that allowed redefining undefined
since 2.x.
2025-06-22 12:23:18 -07:00
Steve Gravrock
0183acc682
Fix diff building when only one side has a custom object formatter
...
Fixes #2061
2025-06-04 18:04:40 -07:00
Steve Gravrock
5ff7e7f9a1
Updated to eslint 9
...
This isn't officially compatible with the oldest version of Node that
Jasmine supports, but it works. If it stops working, we can always disable
linting in CI builds on older Node versions.
2025-04-07 21:39:58 -07:00
Steve Gravrock
cf057b6631
Fixed parse error from jsdoc
...
"arguments" isn't a legal argument name in strict mode JS. The JS
runtimes that Jasmine runs in allow it, but jsdoc doesn't.
2025-02-08 10:25:41 -08:00
Steve Gravrock
2a7a157713
toHaveNoOtherSpyInteractions message tweaks
2025-01-20 11:31:47 -08:00
Eradev
888d3b6250
Modified error message
2025-01-18 17:55:00 -05:00
Eradev
4732012f1c
toHaveNoOtherSpyInteractions implementation
2025-01-10 21:05:12 -05:00
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