Commit Graph

21 Commits

Author SHA1 Message Date
Endel Dreyer
80c5769dcf
update sinon version to 4.0 2017-11-11 17:22:00 -02:00
Endel Dreyer
a0fafe2088
sinon: add missing methods on fake timers 2017-11-11 17:18:58 -02:00
Andy
097d2acf71 Miscellaneous lint fixes (#20849) 2017-10-22 15:22:50 -07:00
Tim van Halteren
b71b75d31d @types/sinon: Added sinon.createSandbox and sinon.defaultConfig (#20451)
* Added sinon.createSandbox and sinon.defaultConfig

* Combined sandbox.create() and createSandbox() overloads using optional parameter
2017-10-10 12:55:18 -07:00
Andy
947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Georgios Valotasios
421678aeea fix: do not make use of es6's Map and Set
this should fix #16587
2017-09-17 13:23:56 +02:00
Marcin Dobosz
a45a48d057 Add sinon.assert.match 2017-09-11 12:06:00 -07:00
Andy
5d6c651a1a Apply stricter lint rules (#19063) 2017-08-17 14:53:41 -07:00
Benjamin Fox
4753cb27ed Add basic method name type checking to sinon.spy and sinon.stub 2017-07-18 10:26:14 +12:00
Marcin Dobosz
0837fea9eb Add optional message param to sinon.match overload that takes a callback 2017-06-22 16:33:50 -07:00
Josh Goldberg
2bd01e84f7 Expanded Sinon's createStubInstance to allow a TType generic (#16730)
* Expanded Sinon's createStubInstance types

* Defaulted createStubInstance behavior to not use the better types

TType gets inferred to `{}` by default. Odd.

* Removed commented out typings

* Removed unnecessary imports from i18next-tests

* Added TS 2.2 notices

* Bumped TS versions to 2.3

* Consolidated optional types for StubbableType

* Update index.d.ts
2017-06-03 15:04:06 -07:00
James Garbutt
ed4f31ba67 add new sinon stub types (setters, getters, values) (#16848)
* add new sinon types

* bump sinon version
2017-06-02 09:01:21 -07:00
Nico Jansen
4958a19ea2 sinon: Add array matcher, set matcher and map matcher
The matchers are documented here: http://sinonjs.org/releases/v2.2.0/matchers/
2017-05-06 10:34:21 +02:00
Lukas Spieß
5ddccbbc61 Fix sinon's usingPromise return type definition (#16305)
* Fix sinon's usingPromise return type definition

* Fix alignment according to new dtslint rule
2017-05-03 13:19:31 -07:00
Lukas Spieß
f782f81c7a Update type definition to include changes from Sinon 2.2.0 (#16298)
* Add usingPromise to sinon types

* Add type definitions for sinon's calledImmediatelyBefore/After

* Update types for sinon's resolves() by marking parameter as optional

* Add tslint.json for sinon and fix issues
2017-05-03 12:02:19 -07:00
Johan Gorter
8bb580b846 Sinon.JS Added missing methods (#15942)
* Added missing methods

* added test for sinon getCalls
2017-04-22 08:24:14 -07:00
Jonathan Little
2f7adbeb8e Added assert, verify, and verifyAndRestore for SinonJS sandbox. 2017-03-31 16:31:28 -07:00
Flarna
f16814539a correct a typo 2017-03-31 15:33:01 +02:00
Flarna
9b78e929f0 Add reset() functions to sandbox. 2017-03-31 15:22:35 +02:00
Jonathan Little
30e6ba2925 Fix for issue #15320: Updates for SinonJS 2.x API including promise rejection/resolution from stubs. 2017-03-24 17:40:57 -07:00
Andy Hanson
354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00