()
| 4648 | } |
| 4649 | |
| 4650 | function verifyIsStub() { |
| 4651 | var method; |
| 4652 | |
| 4653 | for (var i = 0, l = arguments.length; i < l; ++i) { |
| 4654 | method = arguments[i]; |
| 4655 | |
| 4656 | if (!method) { |
| 4657 | assert.fail("fake is not a spy"); |
| 4658 | } |
| 4659 | |
| 4660 | if (typeof method != "function") { |
| 4661 | assert.fail(method + " is not a function"); |
| 4662 | } |
| 4663 | |
| 4664 | if (typeof method.getCall != "function") { |
| 4665 | assert.fail(method + " is not stubbed"); |
| 4666 | } |
| 4667 | } |
| 4668 | } |
| 4669 | |
| 4670 | function failAssertion(object, msg) { |
| 4671 | object = object || global; |
no outgoing calls
no test coverage detected
searching dependent graphs…