Skip to content

Commit

Permalink
test: add
Browse files Browse the repository at this point in the history
  • Loading branch information
waitingsong committed May 6, 2024
1 parent 22ad2fb commit cea384e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/midway-component-kmore/test/decorator/transactional.ts
Original file line number Diff line number Diff line change
@@ -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')
}

0 comments on commit cea384e

Please sign in to comment.