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

Class MyService

packages/core/src/__tests__/unit/service.unit.ts:32–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 describe('@service decorator', () => {
31 it('injects a service by class', async () => {
32 @injectable({scope: BindingScope.SINGLETON})
33 class MyService {
34 getValue() {
35 return 'my-value';
36 }
37 }
38
39 class MyController {
40 constructor(

Callers

nothing calls this directly

Calls 1

injectableFunction · 0.90

Tested by

no test coverage detected