Steve Gravrock
d6fa9dd1a0
Fixed jsdocs for Spy#calls#thisFor
2021-04-17 12:32:59 -07:00
Alexander J. Vincent
e303de52ed
Implement CallTracker.thisFor().
2021-04-11 22:59:43 -07:00
Steve Gravrock
5f9315731e
Improved handling of unhandled promise rejections with no error in Node
...
* Fixes #1759
2021-04-06 18:48:56 -07:00
Steve Gravrock
ce850c472a
API docs for Env#topSuite and Suite
2021-04-03 11:09:30 -07:00
Steve Gravrock
2fc5182ddc
Added missing jsdocs
...
* Env#execute
* Env#allowRespy
* Enough of Spec to support spec filters
2021-03-31 18:16:58 -07:00
Tony Brix
3f232fba80
docs: seed can be number or string
2021-03-26 00:10:15 -05:00
Tony Brix
cde6ea79a3
docs: fix jsdoc seed type
2021-03-25 22:05:02 -05: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
Steve Gravrock
58ef707bc6
Added jasmine.isSpy to the public interface
...
* Fixes #1880
2021-03-17 17:58:51 -07:00
Steve Gravrock
8d0c52e2ec
Temporarily removed global error handler stack validation
...
This fails somewhat frequently (every 2-4 runs of Jasmine's own test
suite) on Safari. Until we get to the bottom of that, it's removed.
2021-03-14 11:46:23 -07:00
Steve Gravrock
76f34e90dc
Allow custom object formatters to be added in beforeAll
...
Fixes #1876 .
2021-03-13 13:49:30 -08:00
Steve Gravrock
46e7158c77
Removed unused util.htmlEscape
2021-03-04 12:46:23 -08:00
Steve Gravrock
1320b0614f
Merge branch 'use-global-onerror' into main
...
* Merges #1860 from @greghuc
* Allows specs to disable Jasmine's global error handling by overwriting
`onerror`.
2020-11-24 11:13:24 -08:00
Gregory Huczynski
905e3fc3f9
Enable custom promise error handling through overriding of global.onerror
2020-11-24 11:04:04 -08:00
Steve Gravrock
89331bb1bb
Fixed comparison between URL objects
...
* Fixes #1866
2020-11-21 13:47:44 -08:00
Jannes Meyer
60bbe68148
Support source maps
2020-11-05 11:40:04 +01:00
DCtheTall
d5d5d1965f
Have properties added by createSpyObj() be enumerable.
2020-10-02 13:49:34 -04:00
Steve Gravrock
d27bb8fa96
Run Prettier on all files
2020-09-29 18:05:38 -07:00
Steve Gravrock
795651d3b6
Removed debugger statements
2020-09-13 13:40:15 -07:00
Steve Gravrock
e7daa429a1
Show the name of the spec/suite that caused a deprecation
2020-09-13 12:59:25 -07:00
Steve Gravrock
51ad18cb28
Warn if a runable both takes a callback and returns a promise
2020-09-13 12:47:24 -07:00
Steve Gravrock
0b81705c11
Detect global error handler stack corruption
2020-09-02 14:43:17 -07:00
Steve Gravrock
00feef8632
Fixed global error handler stack corruption in Jasmine's own tests
2020-09-02 14:01:57 -07:00
Steve Gravrock
8cb44582bc
Don't overwrite MatchersUtil methods with ones that were added to Array.prototype, esp. contains
...
Fixes #1849 .
2020-09-01 15:18:53 -07:00
Steve Gravrock
53d8073707
Allow generator functions to be passed to .and.callFake
...
Fixes #1848 .
2020-08-29 13:15:14 -07:00
Aaron Snailwood
6277046213
fix typo in asyncMatcher toBePending comment
2020-08-20 10:07:35 -07:00
Steve Gravrock
6b9739030d
Fixed future deprecations
2020-08-02 12:57:28 -07:00
Steve Gravrock
0cfeb0b9c3
Fixed link to custom object formatter tutorial
2020-07-23 16:36:56 -07:00
Steve Gravrock
d04b813cab
Merge https://github.com/buildgroundwork/jasmine
...
* Merges #1766 from @amilligan
2020-07-16 10:18:08 -07:00
Steve Gravrock
70c416d5c9
Fixed jsdocs for recent additions
2020-07-10 15:41:02 -07:00
Steve Gravrock
aa6cc31057
Show diffs involving root-level asymmetric equality testers
...
* Fixes #1831
2020-07-08 17:02:11 -07:00
Steve Gravrock
4e2f703615
Check for syntax and standard library objects that don't work in IE
2020-07-01 17:34:59 -07:00
Steve Gravrock
ba2aae63be
Run eslint against all files
2020-07-01 16:09:14 -07:00
Steve Gravrock
b3ab9fad9d
Updated toHaveBeenCalledOnceWith for new matcher interface
2020-06-26 15:14:02 -07:00
Steve Gravrock
13b967b59c
Merge branch 'feat/to-have-been-called-once-with' of https://github.com/Maximaximum/jasmine into pr-merge
...
* Merges #1801 from @Maximaximum
* Fixes #1717
2020-06-26 15:05:04 -07:00
Terence D. Honles
3943cc2ddb
allow spy throwError to throw an Object
...
When using the following code to simulate a node error:
spyOn(process, 'kill').and.throwError({code: 'ESRCH'})
The object passed in will be converted to a string by the Error
constructor and result in '[object Object]' which is not very useful.
This PR changes the ``throwError`` spy strategy to only convert
strings into an Error object, but any other objects which are passed
in will be thrown as is. This means the spy strategy can never emulate
throwing a bare string ``throw 'error'``, but this would be a backward
incompatible change.
2020-06-25 18:12:00 -07:00
johnjbarton
0cb304131f
fix(env): expose setSpec/SuiteProperty on interface
2020-05-26 14:50:01 -07:00
Steve Gravrock
8a731e17a7
Improved jsdocs for user-specified spec/suite properties
2020-05-05 17:58:16 -07:00
Steve Gravrock
7416c176a7
Merge branch 'properties' of https://github.com/johnjbarton/jasmine
...
* Merges #1763 from @johnjbarton
2020-05-05 17:45:43 -07:00
Maksym Kobieliev
0f6ebaa784
Merge branch 'master' into feat/to-have-been-called-once-with
2020-04-14 22:08:13 +03:00
johnjbarton
f90d9943fe
feat(env): setSpecProperty/setSuiteProperty(key, value) to attach data to tests
...
Use setSpecProperty to attach key/value pairs to spec results that can be
picked up in specialized jasmine reporters. Example use-cases
include:
* Tagging specs with URLs or string-tokens referencing test-plan docs.
* Recording performance information for blocks of JS.
Similarly setSuiteProperty attaches key/value pairs to suite results
2020-04-14 11:27:14 -07:00
Steve Gravrock
8991b1bba3
Fixed toHaveSize matcher on IE 10 & 11
2020-04-12 21:22:14 -07:00
Steve Gravrock
2b318a6154
Merge branch 'master' of https://github.com/parloti/jasmine
...
* Merges #1807 from @parloti
* Fixes #1775
* Prevents undesired reloads when karma-jasmine-html-reporter is used
2020-04-11 11:30:25 -07:00
DCtheTall
76a99aef86
add missing trailing newline
2020-04-09 15:19:47 -04:00
DCtheTall
6b213a958d
Add expectAsync().toBePending()
2020-04-09 15:13:33 -04:00
Alex Parloti
9a7dfb15d2
fix #26
...
fix #26
Returning false will cause 'zone.js' to invoke e.preventDefault(), preventing the page from reloading.
2020-04-02 21:01:56 +02:00
Maksym Kobieliev
bcc28d7063
Output a diff if there was only one call, but with wrong parameters
2020-04-02 21:31:17 +03:00
Gregg Van Hove
79d55216fc
Use internal type checks instead of instanceof to support browsers that don't include the types
2020-03-18 08:57:44 -07:00
Gregg Van Hove
ec3ebcb7bb
Clean up toHaveSize
2020-03-18 08:13:21 -07:00