All files / core/blong-gogo/src/adapter/server/slack slackInAcknowledge.ts

73.33% Statements 11/15
100% Branches 0/0
100% Functions 0/0
73.33% Lines 11/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 1x          
import {handler} from '@feasibleone/blong/types';
 
/**
 * `slackIn.acknowledge` — the answer Slack gets, decided before the realm runs.
 *
 * The port acknowledges in `server` mode, so this hook is the only place a request can be answered
 * for its own kind: an event keeps the configured `EVENT_RECEIVED`, an interaction gets the JSON its
 * client reads, and a submission gets the `clear` that dismisses the view (`@@F-645`). The rules are
 * the port's and are asserted in `chatPorts.test.ts`; what is here is the wiring.
 */
export default handler(({lib: {slackAcknowledgeGet}}) => {
    return function slackInAcknowledge(request: {body?: unknown}) {
        return slackAcknowledgeGet(request.body);
    };
});