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

Function saveObservedOptionsForHook

test/user.test.js:1543–1548  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

1541 ]));
1542
1543 function saveObservedOptionsForHook(name) {
1544 User.observe(name, (ctx, next) => {
1545 observedOptions.push(Object.assign({hook: name}, ctx.options));
1546 next();
1547 });
1548 }
1549 });
1550
1551 function givenUserIdAndPassword() {

Callers 1

user.test.jsFile · 0.85

Calls 1

nextFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…