Elliot Nelson
df818f3fbc
rejectValue wraps non-Errors like throwError does
2019-05-08 09:36:12 -04:00
Elliot Nelson
4731b4ee4d
Keep all Promise implementation details internal
2019-05-08 09:13:41 -04:00
Elliot Nelson
95e1890e64
Improved resolveValue/rejectValue error messages
2019-05-07 16:30:48 -04:00
Elliot Nelson
72aa0bbe4d
Add resolveValue and rejectValue spy strategies
2019-05-05 08:08:34 -04:00
Gregg Van Hove
2fbeb201bc
Fix failure messages for positive/negative infinity matchers
...
- Fixes #1674
2019-04-16 17:40:07 -07:00
Gregg Van Hove
b994a17039
Merge branch 'FelixRilling-boolean-matcher'
...
- Merges #1679 from @FelixRilling
2019-04-15 17:48:49 -07:00
Felix Rilling
369e810791
added #toBeTrue and #toBeFalse matchers
2019-04-14 10:17:59 +02:00
Gregg Van Hove
74fd0e08e7
No fit in the suite
2019-04-01 21:01:22 -07:00
Gregg Van Hove
618e24b2f8
Handle WebSocket events in IE when detecting Errors
...
- Fixes #1623
2019-04-01 18:52:27 -07:00
wood
873a237e3d
Consolidate some dev dependencies and use more maintained versions
2019-03-26 17:12:21 -07:00
Gregg Van Hove
994d11d4f3
update node CI script to work with SauceLabs
2019-03-25 17:56:06 -07:00
johnjbarton
a8c2399dd8
feat(result.duration): report test duration in ms
...
Wrap spec start/complete in Timer start/elapsed.
configuration.timeSpecDuration = false will disable feature.
* Add Suite result.duration, elapsed time in ms
* Remove timeSpecDuration option.
* Respond to review, use noopTimer
2019-03-14 09:13:57 -07:00
Gregg Van Hove
def278f90f
Merge branch 'typo-suites' of https://github.com/FelixRilling/jasmine into FelixRilling-typo-suites
...
- Merges #1666 from @FelixRilling
2019-03-11 17:38:29 -07:00
Gregg Van Hove
fd037f53a3
Merge branch 'typo-comments' of https://github.com/FelixRilling/jasmine into FelixRilling-typo-comments
...
- Merges #1665 from @FelixRilling
2019-03-11 17:34:44 -07:00
Felix Rilling
e33b12b17c
Fixed typos in test suite descriptions.
2019-03-10 11:07:40 +01:00
Felix Rilling
dde93ade18
Fixed typos in comments.
2019-03-10 11:04:33 +01:00
Felix Rilling
63f900287c
Fixed typo "receieved" to "received", Adapted test.
2019-03-10 10:59:56 +01:00
Gregg Van Hove
4991f2a713
Merge branch 'print_global_error_type' of https://github.com/jbunton-atlassian/jasmine into jbunton-atlassian-print_global_error_type
...
- Merges #1632 from @jbunton-atlassian
2019-02-11 09:02:16 -08:00
Gregg Van Hove
0d6db64eb1
Merge branch 'onerror' of https://github.com/johnjbarton/jasmine into johnjbarton-onerror
...
- Merges #1644 from @jognjbarton
2019-01-30 17:38:27 -08:00
Gregg Van Hove
eba8c775f3
update npm dependencies
2019-01-08 17:47:53 -08:00
johnjbarton
c36a005893
Support Error.stack in globalErrors.
...
See https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror#window.onerror
2019-01-03 16:14:23 -08:00
Gregg Van Hove
37dfe50d99
Stop treating objects with a nodeType as if they are DOM Nodes
...
- Fixes #1638
2018-12-17 17:10:53 -08:00
James Bunton
d803bd12a6
When catching a global error in Node.js, print the type of error
2018-12-11 08:32:45 +11:00
Sampo Kivistö
a81e9626df
Fixes issue where PhantomJS 2 and IE 10 - 11 crashed when reporting SVG element equality
2018-11-04 10:31:33 +02:00
Gregg Van Hove
2d303a6e46
Merge common async/sync expectation stuff
2018-10-24 16:17:30 -07:00
Gregg Van Hove
1e47dcf2cc
Pull async matchers out to their own functions
...
- Makes AsyncExpectation closer to Expectation
2018-10-23 16:02:31 -07:00
Gregg Van Hove
ba1e8f8008
Implement withContext for async expectations too
2018-10-22 16:42:36 -07:00
Gregg Van Hove
1d130036f4
Merge branch 'master' into expect-context
2018-10-22 14:55:20 -07:00
Gregg Van Hove
fe042fdf82
Use toBeRejectedWith instead of toBeRejectedTo
2018-10-22 11:18:56 -07:00
Gregg Van Hove
06854fe435
Merge branch 'toBeRejectedWith' of https://github.com/codymikol/jasmine into codymikol-toBeRejectedWith
2018-10-22 11:15:05 -07:00
Gregg Van Hove
3c47e71619
Also show tip for .not cases
2018-10-22 10:57:16 -07:00
Teagan Durtschi
7cbedcdda7
Add custom message for toBe() matcher when object equality check fails
2018-10-21 12:46:49 -04:00
Cody Mikol
3aa0115ae4
feat(toBeRejectedTo): implement toBeRejectedTo functionality
...
add functionality to determine whether a promise has been rejected to a
specific value via expectAsync
Fixes : #1595
2018-10-19 23:23:42 -04: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
Gregg Van Hove
16fef04629
Merge branch 'patch-1' of https://github.com/nitobuendia/jasmine into nitobuendia-patch-1
...
- Merges #1601 from @nitobuendia
- Fixes #1594
2018-09-25 17:28:57 -07:00
Gregg Van Hove
92d0882a32
Introduce a configuration object to Env deprecating old single use functions
...
[finishes #159158038 ]
2018-09-25 17:08:41 -07:00
Nito Buendia
04679622b0
Add tests for formatting empty content errors.
2018-09-13 20:02:30 +08:00
Nito Buendia
b4cd1ec1ae
Format according to style.
2018-09-13 19:48:53 +08:00
Nito Buendia
963b1cca22
Add tests for new unnamed errors.
2018-09-13 19:48:10 +08:00
Andrew Eisenberg
f62eb3b1a8
Add spyOnAllFunctions function
...
This function will spy on all writable and configurable functionss of
an object that is passed in. It can be used like this:
spyOnAllFunctions(obj);
This commit addresses https://github.com/jasmine/jasmine/issues/1421
2018-07-20 07:58:17 -07:00
Gregg Van Hove
110c092c9e
Fix regular expressions for different browsers
2018-06-18 17:55:24 -07:00
Ilya Konstantinov
8c1b80daae
Improve Jasmine timeout error message
2018-06-18 17:36:43 -07:00
Steve Gravrock
ac07c9ea97
Simplified ExpectationFilterChain#modifyFailureMessage
2018-06-09 12:34:30 -07:00
Steve Gravrock
0842a80c68
Cleanup
2018-06-09 12:26:34 -07:00
Steve Gravrock
9472df0db4
Added a basic set of async matchers
...
- Fixes #1447
- Fixes #1547
2018-06-04 21:07:44 -07:00
Steve Gravrock
8a01e1f26c
.withContext() works with .not
2018-06-02 22:06:53 -07:00
Steve Gravrock
321f161ce5
Made ExpectationFilterChain immutable
2018-06-02 13:57:29 -07:00
Steve Gravrock
202a677637
ExpectationFilterChain WIP
2018-06-02 13:57:07 -07:00
Gregg Van Hove
8f7327cb4d
Properly cascade StopExecutionError's up the tree
...
- Fixes #1563
2018-05-30 17:32:14 -07:00
SamFare
92d33c79c7
Implemented hiding of disabled specs
2018-05-22 13:30:33 +01:00