This commit is contained in:
Rico Sta. Cruz 2014-10-29 18:11:03 +08:00
parent 14143dac3d
commit b140b61743
1 changed files with 11 additions and 5 deletions

View File

@ -1,4 +1,6 @@
---
title: Sinon
layout: default
---
### Spy
@ -59,15 +61,19 @@ title: Sinon
###
.args
.args //=> [ [..], [..] ] one per call
.thisValues
.returnValues
.getCalls
.called
.called //=> true
.notCalled
.callCount
.calledOnce
.calledTwice
.callThrice
.calledThrice
.getCalls() //=> Array
.getCall(0)
.firstCall