Gregg Van Hove
8da1fd1ed1
Merge branch 'master' of https://github.com/pixelpax/jasmine into pixelpax-master
...
- Merges #1713 from @pixelpax
2019-05-30 17:47:16 -07:00
Gregg Van Hove
8af669677a
Cleanup spy promise strategies to be more consistent with Jasmine at large
...
- Rename `resolveWith` to `resolveTo` to match `toBeResolvedTo`
- No longer wrap non-Errors in `rejectWith`
- Fixes #1715
2019-05-23 17:29:12 -07:00
Gregg Van Hove
b4cbe9850f
add prettier and eslint
2019-05-21 18:23:48 -07:00
Gregg Van Hove
cf2c5c9acc
Merge branch 'enelson/src-cleanup-2' of https://github.com/elliot-nelson/jasmine into elliot-nelson-enelson/src-cleanup-2
...
- Merges #1708 from @elliot-nelson
2019-05-21 17:45:46 -07:00
Gabriel Elkind
4e10cf84d5
Adds in the source-- whoops!
2019-05-20 23:51:29 -05:00
Gregg Van Hove
df6a71e37d
Merge branch 'spy-to-string' of https://github.com/johnjbarton/jasmine into johnjbarton-spy-to-string
...
- Merges #1712 from @johnjbarton
2019-05-20 17:22:05 -07:00
Gregg Van Hove
cbbdd360f8
Merge branch 'enelson/pp' of https://github.com/elliot-nelson/jasmine into elliot-nelson-enelson/pp
...
- Merges #1711 from @elliot-nelson
- Closes #1700
- Closes #1575
2019-05-20 17:13:41 -07:00
johnjbarton
d1adbdc72b
fix(PrettyPrint): jasmine.createSpyObj('obj', ['toString']);
...
The PrettyPrint handler for scalars uses toString() but if that method
has been spyed on, then the stringify fails with
TypeError: Cannot read property 'length' of undefined.
By hanlding this case earlier in format() we avoid the error.
Add unit test covering this case.
2019-05-20 09:33:47 -07:00
Elliot Nelson
9f704b6f3a
PrettyPrinter handles objects with invalid toString implementations
2019-05-20 09:01:10 -04:00
Paul van Brenk
69a7449e50
Fix toBeCloseTo matcher for Node.js 12 and Chrome 74
2019-05-19 12:46:32 -04:00
Elliot Nelson
b1da6e3960
Cleanup: unused vars, dangling commas, negation
2019-05-18 08:11:47 -04:00
Elliot Nelson
1e855aa9b8
Cleanup: whitespace
2019-05-18 08:10:11 -04:00
Gregg Van Hove
e04d3d8a62
Fix bad merge for spyOnProperty error message
2019-05-17 17:07:47 -07:00
Gregg Van Hove
06814769c6
Merge branch 'enelson/spyregerrors' of https://github.com/elliot-nelson/jasmine into elliot-nelson-enelson/spyregerrors
...
- Merges #1706 from @elliot-nelson
2019-05-17 16:44:26 -07:00
Gregg Van Hove
ea1bac5b74
Merge branch 'enelson/spyonproperty' of https://github.com/elliot-nelson/jasmine into elliot-nelson-enelson/spyonproperty
...
- Merges #1705 from @elliot-nelson
2019-05-17 16:21:17 -07:00
Elliot Nelson
befb8995e6
spyOnProperty jasmine-style error messages with usage note
2019-05-17 12:02:44 -04:00
Elliot Nelson
1e13039478
spyOnProperty respects the allowRespy flag
2019-05-17 11:43:22 -04:00
Elliot Nelson
0fded24d35
Introduce matchers#toBeInstanceOf
2019-05-15 11:51:46 -04:00
Elliot Nelson
ee15309a8f
Extend spyOnAllFunctions to include prototype and parent methods
2019-05-11 18:20:13 -04:00
Gregg Van Hove
9a18fdca27
Merge branch 'enelson/spystrategies' of https://github.com/elliot-nelson/jasmine into elliot-nelson-enelson/spystrategies
...
- Merges #1688 from @enelson
- See #1590
2019-05-09 17:30:45 -07:00
Elliot Nelson
b2fb92eedd
Promise-based strategies are now named resolveWith and rejectWith
2019-05-09 06:12:06 -04:00
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
Gregg Van Hove
eb30e8179a
Update deprecation messages to indicate _future_ removal
...
- Fixes #1628
2019-05-07 17:10:04 -07: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
Alexey Prokhorov
8ab46566ac
Fix failure messages for toBeRejectedWithError matcher
2019-05-03 09:37:11 +04:00
Alexey Prokhorov
35968e4a60
Add toBeRejectedWithError matcher
2019-04-26 01:46:56 +04:00
Gregg Van Hove
2fbeb201bc
Fix failure messages for positive/negative infinity matchers
...
- Fixes #1674
2019-04-16 17:40:07 -07:00
Felix Rilling
369e810791
added #toBeTrue and #toBeFalse matchers
2019-04-14 10:17:59 +02:00
Gregg Van Hove
618e24b2f8
Handle WebSocket events in IE when detecting Errors
...
- Fixes #1623
2019-04-01 18:52:27 -07:00
wood
828d14f48e
Use node.js for browser-based CI
2019-03-25 17:55:53 -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
7c0f013003
Merge branch 'johnjbarton-noop-timer'
...
- Merges #1669 from @johnjbarton
2019-03-13 17:34:12 -07:00
johnjbarton
ca2b62b00e
refactor(Timer): share htmlReporter noopTimer via Timer.js
2019-03-12 16:26:04 -07:00
Gregg Van Hove
6bd4a29360
Merge branch 'jsdoc-validation' of https://github.com/FelixRilling/jasmine into FelixRilling-jsdoc-validation
...
- Merges #1667 from @FelixRilling
2019-03-11 17:37:43 -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
b74e0abee1
Fixed flipped JSDoc.
2019-03-10 11:17:50 +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
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ö
473f5cd359
Re-use attr variable
2018-11-04 10:44:54 +02: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
5524207658
Add api docs for .not and .withContext
2018-10-24 16:49:31 -07: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