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

Function task

packages/context/src/__tests__/unit/value-promise.unit.ts:218–225  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

216 it('reports an error thrown from resolver', () => {
217 const source = ['a', 'b', 'c'];
218 const task = () =>
219 resolveUntil<string, string>(
220 source[Symbol.iterator](),
221 v => {
222 throw new Error(v);
223 },
224 (s, v) => true,
225 );
226 expect(task).throw('a');
227 });
228

Callers 1

runMethod · 0.85

Calls 1

resolveUntilFunction · 0.85

Tested by

no test coverage detected