MCPcopy Create free account
hub / github.com/deployd/deployd / verifyIsStub

Function verifyIsStub

test-app/public/sinon.js:80–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 2

mirrorPropAsAssertionFunction · 0.85
sinon.jsFile · 0.85

Calls 1

forEachFunction · 0.85

Tested by

no test coverage detected