MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / toBeBound

Function toBeBound

packages/context/src/__tests__/unit/binding.unit.ts:518–522  ·  view source on GitHub ↗
(b: Binding<unknown>)

Source from the content-addressed store, hash-verified

516
517 it('sets up a placeholder value', async () => {
518 const toBeBound = (b: Binding<unknown>) => {
519 b.toDynamicValue(() => {
520 throw new Error(`Binding ${b.key} is not bound to a value yet`);
521 });
522 };
523 binding.apply(toBeBound);
524 ctx.add(binding);
525 await expect(ctx.get(binding.key)).to.be.rejectedWith(

Callers

nothing calls this directly

Calls 1

toDynamicValueMethod · 0.80

Tested by

no test coverage detected