diff --git a/packages/midway-component-kmore/test/decorator/transactional.ts b/packages/midway-component-kmore/test/decorator/transactional.ts new file mode 100644 index 000000000..d841cc858 --- /dev/null +++ b/packages/midway-component-kmore/test/decorator/transactional.ts @@ -0,0 +1,10 @@ +import assert from 'node:assert/strict' + + +export function validateRespOK(resp: unknown): void { + assert(resp) + // @ts-expect-error + assert(typeof resp.text === 'string') + // @ts-expect-error + assert(resp.text === 'OK') +}