Steve Gravrock
89331bb1bb
Fixed comparison between URL objects
...
* Fixes #1866
2020-11-21 13:47:44 -08:00
Steve Gravrock
53d8073707
Allow generator functions to be passed to .and.callFake
...
Fixes #1848 .
2020-08-29 13:15:14 -07:00
Steve Gravrock
8991b1bba3
Fixed toHaveSize matcher on IE 10 & 11
2020-04-12 21:22:14 -07:00
Steve Gravrock
5096d9af4e
Don't construct unnecessarily asymmetricEqualityTesterArgCompatShims
...
This speeds up MatchersUtil#equals by about 6-7x.
2020-02-12 14:23:03 -08:00
Steve Gravrock
3be797c8d8
Fixed diffs involving jasmine.objectContaining
2020-02-12 14:22:51 -08:00
Steve Gravrock
ba4a8d1d00
Fixed jsdocs
2019-09-10 11:23:11 -07:00
Olga Kozlova
b01d86840a
mapContaining and setContaining asymmetric matchers
2019-08-03 22:14:48 +03:00
Gregg Van Hove
15f969bee7
Add @since to most JSDoc comments
...
- See jasmine/jasmine.github.io#117
2019-06-12 16:23:12 -07:00
Gregg Van Hove
b4cbe9850f
add prettier and eslint
2019-05-21 18:23:48 -07:00
Elliot Nelson
1e855aa9b8
Cleanup: whitespace
2019-05-18 08:10:11 -04:00
Gregg Van Hove
618e24b2f8
Handle WebSocket events in IE when detecting Errors
...
- Fixes #1623
2019-04-01 18:52:27 -07:00
Felix Rilling
dde93ade18
Fixed typos in comments.
2019-03-10 11:04:33 +01:00
Cody Mikol
591bf1144b
bugfix(assertAsync): add promiseLike support for angularJS promises
...
implement a promiseLike method so libraries using non-browser promise
implementations can still utilize assertAsync functionality.
Fixes : #1612
2018-10-18 21:28:32 -04:00
Steve Gravrock
9472df0db4
Added a basic set of async matchers
...
- Fixes #1447
- Fixes #1547
2018-06-04 21:07:44 -07:00
Gregg Van Hove
ced2b114e4
Better detection of DOM Nodes for equality
...
- Also use JSDom if a real one isn't present to get some more coverage
there
- Fixes #1172
2018-05-04 18:01:08 -07:00
Gregg Van Hove
c974c4740c
Merge branch 'master' of https://github.com/sjolicoeur/jasmine into sjolicoeur-master
...
- Merges #1460 from @sjolicoeur
2018-02-15 16:00:33 -08:00
Gregg Van Hove
3b77f38188
Return <anonymous> for functions that have no actual words between keyword and (
...
- Also fixes a potential catastrophic backtracking if someone has
severely damaged their own `toString` during test execution.
2018-02-15 12:31:10 -08:00
Gregg Van Hove
274011ed03
Merge branch 'master' into 3.0-features
2018-02-02 16:33:38 -08:00
Gregg Van Hove
46cc48ccfa
Detect an Error passed to done and add an expectation failure
...
- See #567
2018-01-29 16:46:30 -08:00
Gregg Van Hove
91aab8e1b8
Merge branch 'Volox-ie11-sets-support'
...
- Merges #1478 from @Volox
- Fixes #1355
2018-01-12 17:33:51 -08:00
Volonterio Riccardo
486a64658f
Added complete support for Set also for IE11.
...
Fixes 1355
2018-01-12 12:18:35 +01:00
Gregg Van Hove
1dfdc89ba9
Merge branch 'ie11-maps-support' of https://github.com/Volox/jasmine into Volox-ie11-maps-support
...
- Merges #1477 from @Volox
- Fixes #1472
2018-01-11 17:50:56 -08:00
Volonterio Riccardo
085a1f8a16
Added complete support for Map also for IE11.
...
Fixes 1472
2018-01-11 18:13:24 +01:00
Steve Gravrock
6f119c4e5a
Moved createSpy to env so it can be stateful
2018-01-09 10:16:02 -08:00
Steve Gravrock
298b5ba127
Moved createSpyObj to env so it can be stateful
2018-01-09 09:53:45 -08:00
Steve Gravrock
86a38fceb9
Truncate pretty printer output that is more than j$.MAX_PRETTY_PRINT_CHARS long
2017-12-13 08:09:22 -08:00
Steve Gravrock
c74af1d900
Reduced pretty printer limits to much smaller values
...
This should help prevent out of memory errors when printing large object
graphs. See #1291 and #1422 .
[#153257532 ]
2017-12-13 08:07:43 -08:00
sjolicoeur
d90e20eb15
Added matchers: truthy, falsy, empty and notEmpty
2017-12-07 17:49:16 -08:00
Steve Gravrock
285f06d5c4
Merge branch 'promise-matching-1314' of https://github.com/sderickson/jasmine
2017-11-02 17:18:24 -07:00
Gregg Van Hove
8ad9abb19a
Add arrayWithExactContents asymmetric matcher
...
- Fixes #817
2017-08-04 12:07:09 -07:00
ksvitkovsky
4fc177d5ae
Better pretty printing for typed arrays
2017-08-04 09:33:05 -07:00
Scott Erickson
6ddf64568e
Add Promise checking to eq
...
Fixes #1314
2017-06-26 19:10:19 -07:00
Gregg Van Hove
4c491b2dc0
Pretty printer will now use MAX_PRETTY_PRINT_ARRAY_LENGTH for objects
...
- Fixes #1291
- Fixes #1360
2017-06-14 13:36:35 -07:00
Steve Gravrock
9672689d40
Added support for ES2017 async functions
2017-05-12 14:42:14 -07:00
Gregg Van Hove
7f8f2b5e7a
Update jsDocs to something close to full coverage for public API
...
- #596
2017-03-23 12:20:08 -07:00
Gregg Van Hove
9cb2f06aa6
Add a first pass at jsdoc.
...
[##130415655] #596
2017-03-21 11:36:41 -07:00
Zaven Muradyan
b59ac96b51
Require arguments to beforeEach, it, etc, to be actual functions
2016-12-27 23:53:35 -08:00
Pivotal
369e8cc08b
Merge branch 'mockMethodsShortcut' of https://github.com/mbildner/jasmine into mbildner-mockMethodsShortcut
...
- Merges #1101 from @mbildner
2016-10-17 15:53:05 -07:00
Gregg Van Hove
c2e2bd7c91
Merge branch 'spy-arity-preservation' of https://github.com/kapke/jasmine into kapke-spy-arity-preservation
...
- Merges #1055 from @kapke
- Fixes #991
2016-09-27 15:42:45 -07:00
Gregg Van Hove
4e47b78f1f
Use isFunction to check for functionness in callFake
...
- Fixes #1191
2016-09-14 16:06:44 -07:00
Pivotal
7a62969a14
createSpyObj may use object for method->response shorthand
...
examples:
```JavaScript
var mySpy = jasmine.createSpyObj("mySpy", { getAge: 55, getLanguage: "JavaScrizzle" });
var age = mySpy.getAge();
expect(age).toEqual(55);
expect(mySpy.getAge).toHaveBeenCalled();
```
Also does:
Add "isObject_" method to utils to make it easier for "createSpy" to support an array or object of stubs
2016-04-25 17:10:22 -04:00
Pivotal
604cd6132f
Prettyprint objects whose constructors have custom toString method
...
- when the constructor has a name, print the name
- when the constructor does not have a name, print `<anonymous>`
[Fixes issue 1019](https://github.com/jasmine/jasmine/issues/1019 )
2016-04-25 14:23:48 -04:00
Andrzej Kopeć
90dea9ab38
Now spies preserve original function arity
2016-02-25 21:43:18 +01:00
Gregg Van Hove
3140d5fb95
Allow createSpyObj to be called with just an array of method names
...
[Finish #50757607 ] #321
2015-01-12 15:16:50 -08:00
Gregg Van Hove
a999490de9
Merge branch 'arrayContaining' of https://github.com/slackersoft/jasmine into slackersoft-arrayContaining
...
Merge #440 [Finish #59947350 ]
2015-01-12 14:01:02 -08:00
slackersoft
dfa8a77dc3
Add asymmetric equality tester to match a string against a regexp
...
- Also move the asymmetric testers into their own dir for easier
locating.
[#58120558 ] Fix #243
2014-12-19 12:39:24 -08:00
slackersoft
482f4d62fc
Add anything matcher to match any value that is neither null or undefined
...
[finish #58117878 ] Fix #186
2014-12-17 12:58:47 -08:00
slackersoft
7570bc422b
Display the name of the constructor when pretty printing objects
...
Fixes #598 [finishes #81228592 ]
2014-12-16 12:56:04 -08:00
slackersoft
4889583d5c
Merge branch 'trackReturnValues' of https://github.com/pimterry/jasmine into pimterry-trackReturnValues
2014-09-22 13:04:01 -07:00
slackersoft
3b8326f1e6
Detect global object properly when getting the jasmine require obj
...
- Pull global detection into requireCore and pass the global to base
Fix #569
[fix #73684570 ]
2014-08-28 13:31:04 -07:00