MCPcopy
hub / github.com/Semantic-Org/Semantic-UI / verifyIsStub

Function verifyIsStub

test/helpers/sinon.js:4650–4668  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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;

Callers 2

mirrorPropAsAssertionFunction · 0.85
sinon.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…