mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-22 00:05:51 +00:00
style: 完成所有文件的lint
This commit is contained in:
@@ -42,9 +42,7 @@ mock.module('src/constants/oauth.js', () => {
|
||||
})
|
||||
|
||||
mock.module('src/utils/remoteTriggerAudit.js', () => ({
|
||||
appendRemoteTriggerAuditRecord: async (
|
||||
record: Record<string, unknown>,
|
||||
) => {
|
||||
appendRemoteTriggerAuditRecord: async (record: Record<string, unknown>) => {
|
||||
const fullRecord = {
|
||||
auditId: `audit-${auditRecords.length + 1}`,
|
||||
createdAt: Date.now(),
|
||||
@@ -87,10 +85,9 @@ describe('RemoteTriggerTool audit', () => {
|
||||
const { RemoteTriggerTool } = await import('../RemoteTriggerTool')
|
||||
|
||||
await expect(
|
||||
RemoteTriggerTool.call(
|
||||
{ action: 'run' },
|
||||
{ abortController: new AbortController() } as any,
|
||||
),
|
||||
RemoteTriggerTool.call({ action: 'run' }, {
|
||||
abortController: new AbortController(),
|
||||
} as any),
|
||||
).rejects.toThrow('run requires trigger_id')
|
||||
|
||||
expect(auditRecords).toHaveLength(1)
|
||||
|
||||
Reference in New Issue
Block a user