From 702fa37880548728bda33f32da04b9c0995613de Mon Sep 17 00:00:00 2001 From: fengmk2 Date: Sat, 28 Dec 2024 12:44:07 +0800 Subject: [PATCH] add ctx.httpClient test --- test/app/extend/context.test.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/app/extend/context.test.ts b/test/app/extend/context.test.ts index 548db25e39..77a0ec91ca 100644 --- a/test/app/extend/context.test.ts +++ b/test/app/extend/context.test.ts @@ -407,6 +407,11 @@ describe('test/app/extend/context.test.ts', () => { assert(typeof ctx.httpclient.request === 'function'); assert(typeof ctx.httpclient.curl === 'function'); }); + + it('should httpclient alias to httpClient', async () => { + const ctx = app.mockContext(); + assert.equal(ctx.httpclient, ctx.httpClient); + }); }); describe('ctx.realStatus', () => {