Steve Gravrock
0aee81cfb9
Remvoed checks for typed array support in the test suite
...
All supported browsers have all typed arrays except for Uint8ClampedArray,
BigInt64Array, and BigUint64Array.
2021-06-05 13:31:26 -07:00
Steve Gravrock
1e50b49092
Fixed test failures on IE 10
2021-06-05 13:13:46 -07:00
Steve Gravrock
6aecf16cde
Test coverage for MatchersUtil#equals with typed arrays
2021-06-05 12:03:11 -07:00
Steve Gravrock
f2de1be96a
Fixed "stop spec on expectation failure" checkbox in standalone
...
Fixes [#178248968 ].
2021-06-01 08:49:34 -07:00
Steve Gravrock
5f4a1c4276
Merge branch 'issue/1897' of https://github.com/Dari-K/jasmine into main
...
* Adds option for spyOnAllFunctions to include non-enumerable props
* Merges #1909 from @Dari-k
* Fixes #1897
2021-05-26 17:44:54 -07:00
Darius Keeley
a4ef3687ee
Add optional param to spyOnAllFunctions to include non-enumerable properties
2021-05-25 11:37:24 +01:00
Steve Gravrock
140225e7c3
Isolate specs that are flaky in browsers
...
* Don't run them in browsers in the regular CI build
* Run them in browsers in a special nightly build
* Run them in Node in the regular CI build
* Run them when developers manually run the suite
This should allow the regular CI build to give us a more useful signal,
while keeping us from losing sight of the flaky specs.
2021-05-15 07:44:25 -07:00
Steve Gravrock
9555cb9842
Pass Sauce tunnel identifier correctly
2021-04-17 16:14:45 -07:00
Steve Gravrock
25fbe0646a
Merge branch 'spy-calls-thisFor' of https://github.com/ajvincent/jasmine into main
...
* Merges #1903 from @ajvincent
* Adds Spy#calls#thisFor
2021-04-17 12:14:41 -07:00
Steve Gravrock
82cc1083b6
Migrated from Travis to Circle CI
2021-04-17 11:34:56 -07:00
Steve Gravrock
c2f04ba627
Further compensate for clock jitter
2021-04-17 11:34:56 -07:00
Steve Gravrock
97a46f4560
Fixed test failures on Safari 8 and 9
2021-04-17 11:34:56 -07:00
Steve Gravrock
113134cdbd
Fixed test failure in Firefox 68 ESR
2021-04-17 11:34:56 -07:00
Steve Gravrock
dad5f5fd6b
Fixed test failure in Safari 8
2021-04-17 11:34:53 -07:00
Alexander J. Vincent
fa72544974
CallTracker.thisFor(): add test for undefined context object.
2021-04-13 18:35:04 -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
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
050c1f051c
Fixed intermittent test failures
2021-03-14 12:23:17 -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
Yasin Kocak
3f5c47dff3
expect all truthy and falsy
2021-01-02 10:55:14 +01: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
7d5ca27b9d
Check for forgotten console and debugger statements
2020-09-17 13:33:25 -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
5a715aecee
Removed unnecessary console.log
2020-09-01 15:25:44 -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
Steve Gravrock
6b9739030d
Fixed future deprecations
2020-08-02 12:57:28 -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
Steve Gravrock
0253d4fb71
Merge branch 'update-throwError-to-throw-objects' of https://github.com/terencehonles/jasmine
...
* Merges #1822 from @terencehonles
2020-06-26 15:00:32 -07:00
Steve Gravrock
44875673c1
Merge branch '1821-tests' of https://github.com/dasch-swiss/jasmine
...
* Merges #1829 from @tobiasschweizer
* Fixes #1821
2020-06-26 14:56:08 -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
Steve Gravrock
f4753ac0a4
Fixed syntax errors in IE 10
2020-06-25 07:36:06 -07:00
Tobias Schweizer
ce2161ca32
Add additional test for equals matcher
2020-06-25 09:41:39 +02: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