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 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