mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-18 14:25:51 +00:00
style: 完成所有文件的lint
This commit is contained in:
@@ -31,9 +31,7 @@ describe('waitForUrlEvent', () => {
|
||||
test('returns a Claude URL from environment variables', async () => {
|
||||
process.env.CLAUDE_CODE_URL_EVENT = 'claude-cli://prompt?q=hello'
|
||||
|
||||
await expect(waitForUrlEvent()).resolves.toBe(
|
||||
'claude-cli://prompt?q=hello',
|
||||
)
|
||||
await expect(waitForUrlEvent()).resolves.toBe('claude-cli://prompt?q=hello')
|
||||
})
|
||||
|
||||
test('returns a Claude URL from argv', async () => {
|
||||
|
||||
@@ -9,7 +9,9 @@ const MAX_URL_LENGTH = 2048
|
||||
* Callers that need to wait for an OS-level deep link activation should use
|
||||
* an IPC channel or platform-specific event listener instead.
|
||||
*/
|
||||
export async function waitForUrlEvent(timeoutMs?: number): Promise<string | null> {
|
||||
export async function waitForUrlEvent(
|
||||
timeoutMs?: number,
|
||||
): Promise<string | null> {
|
||||
return findUrlEvent()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user