sinon/mock.js
継承
非公開メソッド
-
sinon.mock(object)
-
each(collection, callback)
-
sinon.expectation
-
callCountInWords(callCount)
-
expectedCallCountInWords(expectation)
-
receivedMinCalls(expectation)
-
receivedMaxCalls(expectation)
公開メソッド
-
sinon.mock(object)
-
sinon.mock.create(object)
-
sinon.mock.expects(method)
-
sinon.mock.restore()
-
sinon.mock.verify()
-
sinon.mock.invokeMethod(method, thisValue, args)
-
sinon.expectation
-
sinon.expectation.create(methodName)
-
sinon.expectation.invoke(func, thisValue, args)
-
sinon.expectation.atLeast(num)
-
sinon.expectation.atMost(num)
-
sinon.expectation.never()
-
sinon.expectation.once()
-
sinon.expectation.twice()
-
sinon.expectation.thrice()
-
sinon.expectation.exactly(num)
-
sinon.expectation.met()
-
sinon.expectation.verifyCallAllowed(thisValue, args)
-
sinon.expectation.allowsCall(thisValue, args)
-
sinon.expectation.withArgs()
-
sinon.expectation.withExactArgs()
-
sinon.expectation.on(thisValue)
-
sinon.expectation.toString()
-
sinon.expectation.verify()
-
sinon.expectation.pass()
-
sinon.expectation.fail()
プロパティ
-
sinon.expectation
-
sinon.expectation.minCalls
デフォルト値 : 1
-
sinon.expectation.maxCalls
デフォルト値 : 1