From cea384e70d07de3d920b38e1d3f89f61f0aca188 Mon Sep 17 00:00:00 2001 From: waiting <1661926154@qq.com> Date: Mon, 6 May 2024 16:26:48 +0800 Subject: [PATCH] test: add --- .../test/decorator/transactional.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 packages/midway-component-kmore/test/decorator/transactional.ts 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') +}