All files / test/demo/orchestrator/subject subjectHello.ts

66.66% Statements 10/15
100% Branches 1/1
0% Functions 0/1
66.66% Lines 10/15

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 161x 1x 1x 1x 1x 1x 1x 1x 1x           1x  
import {type IMeta, handler} from '@feasibleone/blong';
 
type Handler = (params: unknown) => Promise<{
    hello: unknown;
}>;
 
export default handler(
    () =>
        async function subjectHello(
            params: Parameters<Handler>[0],
            $meta: IMeta,
        ): ReturnType<Handler> {
            return {hello: $meta.auth};
        },
);