🐛 fix(vscode): 按种类筛选后仍能展开匹配块的完整主体,接口改叫路由
This commit is contained in:
1 parent
3abc87dbef
commit
6723c1dcc3
5 files changed
+152
-16
No files matched your search
@@ -65,7 +65,7 @@ const HEADER = [
|
||||
describe('fastapi 库规则:接口卡片', () => {
|
||||
it('luffy 的 update_user:名称 / 说明 / 标签 / 异步 / 依赖,请求表、响应表;Forbidden 的状态码查到是 403,四条消息写在一起', async () => {
|
||||
const card = await route(ROUTES, 'update_user', known({ Forbidden: '403' }))
|
||||
expect(card.badge).toEqual({ label: '接口', color: { dark: '#61afef', light: '#1a6fb5' }, icon: 'globe' })
|
||||
expect(card.badge).toEqual({ label: '路由', color: { dark: '#61afef', light: '#1a6fb5' }, icon: 'globe' })
|
||||
expect(propertyLines(properties(card))).toEqual([
|
||||
'名称: update_user',
|
||||
'说明: 更新用户信息。\n\n管理员可更新任意用户,普通用户只能更新自己的基础资料。',
|
||||
|
||||
@@ -97,7 +97,7 @@ interface Words {
|
||||
}
|
||||
|
||||
const ZH: Words = {
|
||||
kind: '接口',
|
||||
kind: '路由',
|
||||
routerKind: '路由器',
|
||||
labels: {
|
||||
name: '名称',
|
||||
|
||||
Reference in new issue
Block a user