Steve Gravrock
e72d161fab
Return a promise from Env#execute in environments that support promises
...
[#178373231 ]
2021-08-07 13:05:55 -07:00
Steve Gravrock
b696bec9e3
Renamed failFast and oneFailurePerSpec config props to stopOnSpecFailure and stopSpecOnExpectationFailure
...
The new names are more self-explanatory and consistent with jasmine-npm. The
old names are deprecated but still work.
[#178682783 ]
2021-07-31 07:51:50 -07:00
Steve Gravrock
286524959b
Split boot.js in two to allow the env to be configured in between
...
This is mainly intended to support jasmine-browser-runner, which will load
a script that configures the env in between the two boot files (boot0.js and
boot1.js). The single-file boot.js is retained for now but will be removed
in a future release.
2021-07-26 18:05:36 -07:00
Steve Gravrock
88b90ec258
Backfilled unit tests for j$.isError_
2021-07-19 10:31:53 -07:00
Steve Gravrock
3e64ce3310
Removed property tests for MatchersUtil#equals
...
These might be useful for a function with a more restricted domain. But for
equals, which accepts two of literally anything, the short run was too short
to catch any problems and the long run tended to exceed the CircleCi timeout.
2021-07-03 08:37:15 -07:00
Joris Stolwijk
e4c7d8af45
new attempt for fixing #1906 : add window.location.pathname to hrefs + comments + fixed tests
2021-06-29 14:03:25 +02:00
Steve Gravrock
ee88ecc614
Revert "add url pathName in toQueryString function - fixes ( https://github.com/jasmine/jasmine/issues/1906 ) + comment + test"
...
Reverted because it breaks the option checkboxes in the HTML reporter, both
in the standalone distribution and in jasmine-browser-runner.
Reopens #1906 .
This reverts commit 1e4f0d1545 .
2021-06-28 12:42:05 -07:00
Steve Gravrock
dbc1a0aa56
Added expectAsync(...).already
...
* Causes async matchers to immediately fail if the promise is pending
* Fixes #1845
2021-06-23 20:13:01 -07:00
Steve Gravrock
5862b22aef
Include rejection details in failure messages for toBeResolved and toBeResolvedWith
...
[#178559119 ]
2021-06-21 16:43:51 -07:00
Steve Gravrock
68db3f6fcf
Merge branch 'select-spec' of https://github.com/jlpstolwijk/jasmine into main
...
* Merges #1907 from @jlpstolwijk
* Fixes #1906
* Fixes spec filtering in karma-jasmine-html-reporter
2021-06-14 17:59:29 -07:00
Joris Stolwijk
1e4f0d1545
add url pathName in toQueryString function - fixes ( https://github.com/jasmine/jasmine/issues/1906 ) + comment + test
2021-06-14 15:05:12 +02:00
Steve Gravrock
c546d2cb6d
Merge branch 'patch-1' of https://github.com/eltociear/jasmine into main
...
* Fixes typo in spec name
* Merges #1918 from @eltociear
2021-06-13 09:57:23 -07:00
Steve Gravrock
6e097528f5
Include only specified files in the NPM package
2021-06-13 09:52:01 -07:00
Ikko Ashimine
4e1f36cbb0
Fix typo in SpySpec.js
...
ommitted -> omitted
2021-06-12 10:00:36 +09:00
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