Commit Graph
57 Commits
Author SHA1 Message Date
Klaus Reimer 3379a63609 Correct signature of toThrowError
Jasmine expects an Error TYPE not an Error VALUE as first parameter.
2016-03-08 09:26:59 +01:00
Denis Postu d594ef506d Added missing 'returnValue' to jasmine.CallInfo 2016-03-03 23:50:35 +01:00
Horiuchi_H bc92442c07 change CRLF to LF 2016-02-08 12:01:16 +09:00
Tom Peres 777e7d1b1d updated SpyAnd return values 2016-01-31 20:40:15 +02:00
Felipe Andrade 26c98c8a95 added toHaveBeenCalledTimes 2016-01-06 11:28:40 -05:00
Tanguy Krotoff d2dd0dbfc7 Improve jasmine.d.ts
- Remove toContainHtml() and toContainText(): they are not part of Jasmine API
- Avoid the use of any for toMatch(), toBeLessThan(), toBeGreaterThan(), toBeCloseTo() and toThrowError()
2015-12-18 05:09:35 +01:00
Alex Eagle 56c85ef59b Fix jasmine: message is optional in CustomMatcherResult.
See http://jasmine.github.io/2.2/custom_matcher.html#section-Failure_Messages
2015-11-10 10:37:37 -08:00
Roman Fromrome ff104ed7cc optional expectationFailOutput parameter added to matchers
optional expectationFailOutput parameter added to matchers for ability
to track expectation fail reason in output message
2015-09-08 16:29:45 -07:00
Joe Skeen d82912b209 Added additional type information to the calls object for Jasmine Spies 2015-07-22 09:41:13 -06:00
Dmitry A. Efimenko e2332f6e50 Updated interface for Clock with mockDate() fn 2015-07-17 11:28:40 -07:00
Jaime Giraldo dd6c0bef0e Complemented second optional param on toThrowError 2015-07-10 12:00:55 -05:00
robertjmason 09469cae6f Added arrayContaining()/ArrayContaining definitions 2015-06-30 13:00:53 -07:00
joswhite 793f52d261 Add jasmine.stringMatching() function
See http://jasmine.github.io/2.3/introduction.html
2015-06-16 13:52:13 -06:00
joswhite 8a42c1d474 Update jasmine.d.ts
Add Jasmine's .anything() matcher
2015-06-09 16:08:25 -06:00
CallMeTango 2017b81457 Support custom equality testers and custom matchers improvements
- Added support for custom equality testers. Fixed existing function
  signature and added interfaces
- Improved typings for custom matchers to be more strict and modeled the
  construction process via corresponding interfaces
- Added tests for the custom equality testers and custom matchers
2015-04-30 17:10:21 +02:00
a3chic9 1142e2b664 Update Jasmine version to 2.2 2015-04-14 10:52:32 -04:00
a3chic9 19a23c4d38 Update jasmine pending() definition
Added option string parameter
2015-04-14 10:27:31 -04:00
Jake Aitchison 09e19b7749 Add support for jasmine 2.2 Asynch timeout syntax 2015-03-22 13:23:49 +00:00
AbdulFattah Popoola 160c1b1533 Removal of obsolete parameter in Spy Interface
The callCount parameter does not exist in Jasmine versions > 2.0 but did exist in 1.3
2015-03-19 08:51:06 -07:00
vvakame 345859505a update jasmine project url 2015-02-05 00:51:04 +09:00
David Pärsson 675a63e403 Added global fail() function to Jasmine typings 2015-02-04 11:28:29 +01:00
David Pärsson afca0689f7 Add support for chaining and calls on Jasmine spies 2015-02-03 15:24:11 +01:00
GlennQuirynen fc233c766b Update jasmine.d.ts
Adding beforeAll() and afterAll(), as described with the new version

https://github.com/jasmine/jasmine/blob/master/release_notes/2.1.0.md
2015-01-26 15:43:55 +01:00
Wayne Maurer 43e0a7923e Update jasmine.d.ts
Focused specs have been in jasmine-core since version 2.1
2014-12-31 22:38:38 +01:00
cherrydev 9b15f26653 Removed (very) obsolete toNot* wasNot* matchers 2014-11-17 14:37:56 -08:00
Drew Noakes c1be07edcf [minor] Fix typo in URL 2014-09-02 10:57:42 +01:00
jandersonBB e7e263cae1 Update jasmine.d.ts
https://groups.google.com/forum/#!topic/jasmine-js/LwlC-yCksY4
2014-08-13 14:16:13 -07:00
Tobias Bengfort e827d60b1a jasmine: add missing variable DEFAULT_TIMEOUT_INTERVAL 2014-07-19 11:44:50 +02:00
Basarat Ali Syed 0d74fcc01a Update jasmine.d.ts
`dddescribe`/`iit` are not a part of jasmine standard lib.
2014-07-01 23:20:36 +10:00
Bart van der Schoor 1d345f6c14 cleaned-up headers 2014-06-18 23:31:11 +02:00
Antonio Laguna 4bb54542fe Adding calls interface to Jasmine 2014-04-16 14:52:40 +01:00
Artur Soler 73747f076c calls is an object (it should probably be defined), not an array. 2014-03-14 18:44:29 +01:00
Artur Soler 814f95190a callFake can receive a function that takes parameters. 2014-03-14 18:43:04 +01:00
Artur Soler c2b80d5ccb Add ddescribe and iit function definitions. 2014-03-14 18:41:59 +01:00
Bartvds 1c1a37c1e4 removed utf-8 BOM marker
for consistency
2014-01-24 18:51:21 +01:00
Bartvds 333b89f8d3 added/fixed headers j
https://github.com/borisyankov/DefinitelyTyped/issues/1570

jsfl: fixed odd encoding in comments
2014-01-24 00:55:00 +01:00
Theodore Brown 949e231c31 Updated definition file to support Jasmine v2.0 2013-12-25 11:49:29 -06:00
Mohamed Mansour 9e9042b5c9 Fix bug where waitsFor has an optional failureMessage
It should be defined as optional for failureMessage according to the specifications.
2013-12-06 20:04:46 -08:00
danrspencer 9b980143a8 Prototype for createSpyObj to allow for typed spies
Added an overload to the prototype for createSpyObj to allow it to return a strongly typed spy object via use of generics
2013-10-28 15:58:45 +00:00
vvakame e77a73d69e Added noImplicitAny option support to jasmine 2013-09-26 15:38:19 +09:00
Fitzchak Yitzchaki bfa6d45214 Add missing semicolon
Code edited:

interface SpecFunction {
    (spec?: Spec): void;
}
2013-09-15 09:35:01 +02:00
gstamac 299ee16372 Jasmine: replaced a lot of "any" with correct types 2013-08-23 08:40:16 +02:00
gstamac 7862cd8e01 Jasmine: fixed createSpy optional function parameter 2013-08-21 15:23:00 +02:00
gstamac 198804cbfe Jasmine: added currentSpec to Env 2013-08-20 11:51:18 +02:00
gstamac 56a4a19e61 Jasmine: added jasmine.objectContaining 2013-08-19 16:29:38 +02:00
gstamac a65518d9eb Jasmine: removed constructor definition in Reporter interface 2013-08-19 11:04:10 +02:00
Ben Jackman 34a3c8fc0f Jasmine: Added any types to avoid errors --noImplicitAny
Signed-off-by: Ben Jackman <ben@jackman.biz>
2013-08-17 00:00:20 -05:00
Artem Chivchalov 7b712b592b jasmine: fixed createSpy definition
Added `originalFn` parameter according to https://github.com/pivotal/jasmine/blob/master/src/core/base.js#L52
2013-08-11 00:09:32 +04:00
John Reilly c848fbb3fa Fix for TS 0.9.1
Removed extra overload of ensureSelectElementIsRenderedCorrectly to
prevent this compiler error with TS 0.9.1: "error TS2175: Overloads
cannot differ only by return type.".  Also amended jasmine switching
bool to boolean so tests pass.
2013-08-07 11:00:22 +01:00
damianog 21f6baaef8 Removed unnecessary comma
Found error compilation in typescript 0.9 beta
Removed unnecessary comma
2013-06-14 20:08:21 +03:00