mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 11:41:44 +00:00
Sinon mongoose (#12039)
* Added sinon-mongoose.d.ts * Fixed new lines * Renamed tests file
This commit is contained in:
committed by
Masahiro Wakame
parent
513b1012d0
commit
d1267a71fe
@@ -0,0 +1,6 @@
|
||||
/// <reference path="sinon-mongoose.d.ts"/>
|
||||
function testChain() {
|
||||
sinon.stub().chain('exec');
|
||||
}
|
||||
|
||||
testChain();
|
||||
Vendored
+18
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user