Sinon.
This commit is contained in:
parent
14143dac3d
commit
b140b61743
16
sinon.md
16
sinon.md
|
@ -1,4 +1,6 @@
|
||||||
|
---
|
||||||
title: Sinon
|
title: Sinon
|
||||||
|
layout: default
|
||||||
---
|
---
|
||||||
|
|
||||||
### Spy
|
### Spy
|
||||||
|
@ -59,15 +61,19 @@ title: Sinon
|
||||||
|
|
||||||
###
|
###
|
||||||
|
|
||||||
.args
|
.args //=> [ [..], [..] ] one per call
|
||||||
.thisValues
|
.thisValues
|
||||||
.returnValues
|
.returnValues
|
||||||
|
|
||||||
.getCalls
|
.called //=> true
|
||||||
|
|
||||||
.called
|
|
||||||
.notCalled
|
.notCalled
|
||||||
.callCount
|
.callCount
|
||||||
.calledOnce
|
.calledOnce
|
||||||
.calledTwice
|
.calledTwice
|
||||||
.callThrice
|
.calledThrice
|
||||||
|
|
||||||
|
.getCalls() //=> Array
|
||||||
|
.getCall(0)
|
||||||
|
.firstCall
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue