テストケースに複数のsinon.testの動作が必要な場合は、sinon.testCaseを使用することができる。
If you need the behavior of sinon.test for more than one test method in a test case, you can use sinon.testCase, which behaves exactly like wrapping each test in sinon.test with one exception: setUp and tearDown can share fakes.
なし
| パラメタ: |
|
|---|---|
| 戻り値の型: | Function |
| 戻り値: | setUp -> property -> tearDownの順番で関数を呼び出す関数オブジェクトを返す。 |
| パラメタ: |
|
|---|---|
| 戻り値の型: | Object |
| 戻り値: | sinon.test()の戻り値(関数オブジェクト)を格納したObjectを返す。 |
なし