MCPcopy
hub / github.com/loopbackio/loopback-next / MyObserver

Class MyObserver

packages/core/src/__tests__/unit/lifecycle.unit.ts:106–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104
105 it('returns true for class instance with lifecycle methods', () => {
106 class MyObserver implements LifeCycleObserver {
107 async start() {}
108 async stop() {}
109 }
110 const instance = new MyObserver();
111 expect(isLifeCycleObserver(instance)).to.be.true();
112 });

Callers

nothing calls this directly

Calls 2

injectableFunction · 0.90
lifeCycleObserverFunction · 0.85

Tested by

no test coverage detected