Skip to content

Commit

Permalink
add ctx.httpClient test
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Dec 28, 2024
1 parent 6337e20 commit 702fa37
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/app/extend/context.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit 702fa37

Please sign in to comment.