Andy Hanson
45c9246c09
Remove esModuleInterop from tsconfigs (no longer mandatory)
2018-02-14 14:55:13 -08:00
Andy
bef4d2b27d
Enable "esModuleInterop" in all tsconfigs ( #23354 )
2018-02-05 11:01:56 -08:00
Kyle Pittman
c4608b1b7c
Update interface Env.beforeEach/All and Env.afterEach/All ( #23133 )
...
Updates the signatures for `interface Env` before/after/each/all functions to match their global partners. See lines 50-73.
2018-01-26 09:15:04 -08:00
Boris Breuer
04a5483d77
Modified Jasmine ( #23094 )
...
* According to the documentation, execute arguments are optional.
See https://jasmine.github.io/2.3/node.html for more information.
* Added name to package header.
* The onComplete callback comes with a boolean indicating if the tests pased.
Specify a custom onComplete callback. The callback is given a boolean of whether all of the specs passed or not. This is often used to message a status to task runners like grunt.
See also https://jasmine.github.io/2.3/node.html .
2018-01-22 13:45:04 -08:00
Stewart Rand
5ee253b57e
Jasmine: Parameter accessType should be optional and have specific possible values in spyOnProperty() ( #22849 )
...
* Update parameter to be option for Jasmine spyOnProperty
* Constrain possible values of accessType to 'get' and 'set'
2018-01-12 10:01:58 -08:00
Jamie Mason
3bdc4ff651
Jasmine matchers can accept many arguments
...
refs #21327
2017-12-17 20:49:58 +00:00
Nathan Shively-Sanders
5cea4a1dec
Merge pull request #21159 from JoshuaKGoldberg/patch-2
...
Made name optional in jasmine::createSpy
2017-11-14 13:33:17 -08:00
Mitya Kononchuk
66d4e5113f
Explicit interface for nothing()
2017-11-14 19:57:51 +01:00
Mitya Kononchuk
9f33e8c468
Support construct
2017-11-14 19:06:05 +01:00
Mitya Kononchuk
76d8a28714
Fix that bug
2017-11-14 17:55:41 +01:00
Mitya Kononchuk
a01c214f1d
Add a test for the fault case
2017-11-14 17:54:24 +01:00
Mitya Kononchuk
a9ec5e7fe0
Switch to strict null checks
2017-11-14 17:54:23 +01:00
Lukas Zech
5390838335
Add .toBe to tests for jasmine.ArrayLike
2017-11-13 20:00:44 +01:00
Lukas Zech
bbaf0f5610
Fix return type of arrayContaining()
...
Add `arrayWithExactContents()`
Add `nothing()`
Fixes #21305
2017-11-07 11:05:55 +01:00
Andy
88131dc81e
jasmine doesn't really require typescript@2.3 ( #21284 )
2017-11-06 10:59:21 -08:00
Josh Goldberg
3ac9d950a0
Made name optional in jasmine::createSpy
...
See https://github.com/jasmine/jasmine/issues/1438
2017-10-31 15:22:01 -07:00
Andy
19f89399e4
Ensure every package has a tslint.json ( #21009 )
...
* Ensure every package has a tslint.json
* Fixes
2017-10-25 11:13:50 -07:00
barrtender
247e3671fe
[Jasmine] Add matchersUtil on jasmine object ( #20771 )
...
* Add matchersUtil on jasmine object
Bringing in line with https://github.com/jasmine/jasmine/blob/master/src/core/matchers/matchersUtil.js to do testing on custom matchers
* Added test that needs jasmine.matchersUtil
Without it I can't test a message on failure for a custom matcher.
2017-10-23 15:09:01 -07:00
Andy
947a8fb761
Enable strictFunctionTypes ( #20373 )
2017-10-06 14:03:03 -07:00
Dale Caffull
417f0c2de9
Adding toHaveBeenCalledBefore matcher to jasmine
2017-09-14 14:02:05 +01:00
Andy
924fafffc0
Fix remaining lint errors ( #19166 )
2017-08-20 15:37:53 -07:00
Jakub Vrána
8ec8fc20f5
[jasmine] Allow CustomEqualityTester to return undefined ( #17390 )
...
* Allow CustomEqualityTester to return undefined
As explained at https://jasmine.github.io/2.6/custom_equality.html , returning undefined means that this tester couldn't compare the values.
* [jasmine] Fix return type of CustomEqualityTester test
* [jasmine] Fix return type of CustomEqualityTester test
2017-06-23 08:17:43 -07:00
Geert Jansen
df7deabe23
Merge branch 'master' into patch-1
2017-06-06 11:57:12 +02:00
David Gardiner
f34617c7e6
Jasmine ( #16793 )
...
- Add declare module (from @mhegazy https://github.com/DefinitelyTyped/DefinitelyTyped/issues/7793#issuecomment-270795816 )
- Also add some jsdocs for common methods
Resolves #7793
2017-06-02 08:38:53 -07:00
Lukas Zech
cad0e31021
Add Expected<T> to ArrayLikeMatchers.toContain ( #16408 )
...
* Add Expected<T> to ArrayLikeMatchers.toContain
* Add function signature to jasmine.Any
2017-06-02 06:17:00 -07:00
Gabe Moothart
7ea2468545
Add SpyObj<T> typing for createSpyObj. ( #16321 )
...
* Add SpyObj<T> typing for createSpyObj.
Adding a mapped type SpyObj<T>, and make it the return value of
createSpyObj.
* simplify type
2017-06-01 08:08:18 -07:00
Jure Skelin
470a4e1eaa
implement declarations from jasmine.createSpyObj ( #16838 ) ( #16843 )
2017-05-31 21:58:25 -07:00
Geert Jansen
5332c59958
update methodNames parameter type on createSpyObj
...
Adds missing Object type to the methodNames parameter on the jasmine.createSpyObj method.
2017-05-29 09:04:45 +02:00
Steven Masala
dd092f37e2
Merge branch 'master' of https://github.com/DefinitelyTyped/DefinitelyTyped
2017-03-24 23:23:57 +01:00
Andy Hanson
354cec620d
Move all packages to a types directory
2017-03-24 14:27:52 -07:00