MCPcopy
hub / github.com/strongloop/loopback / shouldReturn

Function shouldReturn

test/model.test.js:703–713  ·  view source on GitHub ↗
(methodName, expectedAccessType)

Source from the content-addressed store, hash-verified

701 shouldReturn('unkown-model-method', ACL.EXECUTE);
702
703 function shouldReturn(methodName, expectedAccessType) {
704 describe(methodName, function() {
705 it('should return ' + expectedAccessType, function() {
706 const remoteMethod = {name: methodName};
707 assert.equal(
708 User._getAccessTypeForMethod(remoteMethod),
709 expectedAccessType,
710 );
711 });
712 });
713 }
714 });
715
716 describe('Model.getChangeModel()', function() {

Callers 1

model.test.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…