Sinon mongoose (#12039)

* Added sinon-mongoose.d.ts

* Fixed new lines

* Renamed tests file
This commit is contained in:
Steve Hipwell
2016-10-19 21:43:32 +09:00
committed by Masahiro Wakame
parent 513b1012d0
commit d1267a71fe
2 changed files with 24 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
/// <reference path="sinon-mongoose.d.ts"/>
function testChain() {
sinon.stub().chain('exec');
}
testChain();
+18
View File
@@ -0,0 +1,18 @@
// Type definitions for sinon-mongoose v1.3.0
// Project: https://github.com/underscopeio/sinon-mongoose
// Definitions by: stevehipwell <https://github.com/stevehipwell>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../sinon/sinon.d.ts"/>
declare namespace Sinon {
export interface SinonStub {
/**
* When called, the stub will create a new stub to represent a mongoose chained function.
*/
chain(name: string): SinonStub
}
}