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 16 17 18 19 20 21 22 23 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 2x 2x 2x 2x 2x 2x 2x 1x | import {type IMeta, handler} from '@feasibleone/blong';
/**
* Dev-only metered fixture: `meterprobe.credit` (test-only handler).
*
* Lives in `adapter/dbTest/` so it is only loaded in the `dev` intent
* (the db adapter imports `.dbTest` handler groups only under `dev`). Never
* loaded in production. Routed via the `meterprobe` namespace and metered by
* the 'Meter Probe Credit' bundle (route config
* `{bundle: 'Meter Probe Credit', creditCost: 5}`).
*/
export default handler(
() =>
async function meterprobeCredit(
// eslint-disable-next-line @typescript-eslint/no-unused-vars
_params: {probe?: string},
// eslint-disable-next-line @typescript-eslint/no-unused-vars
_$meta: IMeta,
): Promise<{success: boolean; probe: string}> {
return {success: true, probe: 'credit'};
},
);
|