(input: unknown)
| 70 | } |
| 71 | |
| 72 | function fetchInputUrl(input: unknown): string { |
| 73 | if (typeof input === 'string') return input; |
| 74 | if (input instanceof URL) return input.href; |
| 75 | if (input instanceof Request) return input.url; |
| 76 | throw new TypeError('expected fetch input to be a string, URL, or Request'); |
| 77 | } |
| 78 | |
| 79 | describe('resolveKimiTokenStorageName', () => { |
| 80 | it('maps config oauth keys to the file storage token name', () => { |