()
| 78 | var assert; |
| 79 | |
| 80 | function verifyIsStub() { |
| 81 | var args = arraySlice(arguments); |
| 82 | |
| 83 | forEach(args, function(method) { |
| 84 | if (!method) { |
| 85 | assert.fail("fake is not a spy"); |
| 86 | } |
| 87 | |
| 88 | if (method.proxy && method.proxy.isSinonProxy) { |
| 89 | verifyIsStub(method.proxy); |
| 90 | } else { |
| 91 | if (typeof method !== "function") { |
| 92 | assert.fail(method + " is not a function"); |
| 93 | } |
| 94 | |
| 95 | if (typeof method.getCall !== "function") { |
| 96 | assert.fail(method + " is not stubbed"); |
| 97 | } |
| 98 | } |
| 99 | }); |
| 100 | } |
| 101 | |
| 102 | function verifyIsValidAssertion(assertionMethod, assertionArgs) { |
| 103 | switch (assertionMethod) { |
no test coverage detected