|
@@ -384,6 +384,10 @@ describe('用户路由API集成测试 (使用hono/testing)', () => {
|
|
|
// 验证再次获取用户返回404
|
|
// 验证再次获取用户返回404
|
|
|
const getResponse = await client[':id'].$get({
|
|
const getResponse = await client[':id'].$get({
|
|
|
param: { id: testUser.id }
|
|
param: { id: testUser.id }
|
|
|
|
|
+ }, {
|
|
|
|
|
+ headers: {
|
|
|
|
|
+ 'Authorization': `Bearer ${testToken}`
|
|
|
|
|
+ }
|
|
|
});
|
|
});
|
|
|
IntegrationTestAssertions.expectStatus(getResponse, 404);
|
|
IntegrationTestAssertions.expectStatus(getResponse, 404);
|
|
|
});
|
|
});
|