Commit Graph

24 Commits

Author SHA1 Message Date
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