Steve Gravrock
cb044aa273
Bump version to 3.7.1
2021-03-18 17:28:04 -07:00
Steve Gravrock
592fba22b8
Bump version to 3.7.0
2021-03-17 18:38:34 -07: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
324bc201c2
Built distribution
2021-03-13 13:52:10 -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
Steve Gravrock
89331bb1bb
Fixed comparison between URL objects
...
* Fixes #1866
2020-11-21 13:47:44 -08:00
Steve Gravrock
88de272c89
Merge branch 'main' of https://github.com/JannesMeyer/jasmine into main
...
* Merges #1862 from @JannesMeyer
* Adds support for stack traces created by `node --enable-source-maps`
with tools like the Typescript compiler.
2020-11-09 12:15:37 -08:00
Steve Gravrock
cd1131354b
Merge branch 'enumerable' of https://github.com/DCtheTall/jasmine into main
...
* Merges #1859 from DCtheTall
* Fixes #1837
2020-10-10 18:01:48 -07:00
Steve Gravrock
c24aef15b1
Built distribution
2020-10-10 18:00:09 -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
Steve Gravrock
e0eb4755cb
Merge branch 'fix-to-be-pending-typo' of https://github.com/SnailCoil/jasmine into main
...
* Merges #1847 from @SnailCoil
2020-08-20 17:51:02 -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
d51da18808
Bump version to 3.6.0
2020-07-23 16:02:30 -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
f8ae3eaeaa
Built distribution
2020-07-08 16:53:53 -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
f4e192a428
Merge branch 'expose-property' of https://github.com/johnjbarton/jasmine
...
* Merges #1820 from @johnjbarton
2020-06-23 16:58:54 -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
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
Steve Gravrock
41293714fd
Merge branch 'tobepending' of https://github.com/DCtheTall/jasmine
...
* Merges #1808 from @DCtheTall
* Fixes #1803
2020-04-11 11:17:49 -07: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
Francois Wauquier
c521b4d47c
toHaveSize
2020-03-18 08:13:10 -07:00
Chives
6440ca434d
Add trailing newlines to example code
2020-02-29 04:30:03 -05:00
Steve Gravrock
93ad31e0af
Correctly report spec and suite duration
...
Previously, suite duration was always reported as 0 and spec duration
was always reported as null. Suites always used a no-op timer, and
specs set their result.duration after the result had already been sent
to reporters.
Fixes #1676 .
2020-02-22 16:53:36 -08:00
Steve Gravrock
a6a9550d1e
Fixed 'since' versions for MatchersUtil
2020-02-13 10:52:54 -08:00
Steve Gravrock
258d55469e
Merge branch 'cof-merge-candidate'
...
* Simplifies the matcher interface
* Adds support for custom object formatters
2020-02-12 15:16:28 -08:00
Steve Gravrock
5096d9af4e
Don't construct unnecessarily asymmetricEqualityTesterArgCompatShims
...
This speeds up MatchersUtil#equals by about 6-7x.
2020-02-12 14:23:03 -08:00
Steve Gravrock
3be797c8d8
Fixed diffs involving jasmine.objectContaining
2020-02-12 14:22:51 -08:00
Gregg Van Hove
d10e8c2ddf
Merge branch 'enelson/callThrough-constructor' of https://github.com/elliot-nelson/jasmine into elliot-nelson-enelson/callThrough-constructor
...
- Merges #1782 from @enelson
- Fixes #1760
2020-02-12 11:39:29 -08:00
Steve Gravrock
c2ada1af95
Merge branch 'custom-object-formatters' into cof-merge-candidate
2020-02-11 13:51:17 -08:00
Pivotal
ea3dd9dffc
Refer to MatchersUtil instances as matchersUtil, not util
2020-02-10 17:26:05 -08:00
Steve Gravrock
d41139fea2
Added jsdocs for MatchersUtil
2020-02-10 17:26:05 -08:00
Steve Gravrock
873d1c2945
Use custom object formatters for any part of a diff, not just leaf nodes
2020-02-10 17:26:00 -08:00
Steve Gravrock
25816a6e77
Added support for custom object formatters
...
Custom object formatters allow users to customize how an object is
stringified in matcher failure messages. This can already be done by
adding a `jasmineToString` method to the objects in question. But
it's not always desirable or possible to do that, particularly when
objects of a given "type" do not inherit from a specific prototype.
For instance, suppose a web service returns a list of foos that are
deserialized from JSON, e.g.:
{ fooId: 42, /* more properties */ }
The only way to define `jasmineToString` on those is by writing code to
add it to each instance at runtime. But a custom object formatter can
recognize that the object it's looking at is a foo and format it
accordingly:
jasmine.addCustomObjectFormatter(function(obj) {
if (typeof obj.fooId !== 'number') {
return undefined;
}
return '[Foo with ID ' + obj.fooId + ']';
});
Unlike `jasmineToString`, custom object formatters are scoped to a
particular spec or suite and don't require any changes to the code
under test.
2020-02-10 17:26:00 -08:00
Steve Gravrock
1f23f1e4d2
Inject a per-runable pretty printer into MatchersUtil
...
This will allow us to add support for custom object formatters, which
will be a per-runable resource like custom matchers, by injecting them
into the pretty-printer.
2020-02-10 17:26:00 -08:00