style: 完成所有文件的lint

This commit is contained in:
claude-code-best
2026-05-01 21:39:30 +08:00
parent d136872cc9
commit 6182015005
1333 changed files with 68255 additions and 77882 deletions

View File

@@ -21,9 +21,9 @@ describe('AES-128-ECB', () => {
test('different keys produce different ciphertext', () => {
const plaintext = Buffer.from('test data')
expect(
expect(encryptAesEcb(plaintext, randomBytes(16))).not.toEqual(
encryptAesEcb(plaintext, randomBytes(16)),
).not.toEqual(encryptAesEcb(plaintext, randomBytes(16)))
)
})
})
@@ -63,9 +63,7 @@ describe('CDN URL builders', () => {
})
test('buildCdnUploadUrl encodes params', () => {
expect(
buildCdnUploadUrl('https://cdn.example.com', 'param1', 'key1'),
).toBe(
expect(buildCdnUploadUrl('https://cdn.example.com', 'param1', 'key1')).toBe(
'https://cdn.example.com/upload?encrypted_query_param=param1&filekey=key1',
)
})

View File

@@ -15,8 +15,9 @@ describe('markdownToPlainText', () => {
})
test('removes code block fences', () => {
expect(markdownToPlainText("```js\nconsole.log('hi');\n```"))
.toBe("console.log('hi');")
expect(markdownToPlainText("```js\nconsole.log('hi');\n```")).toBe(
"console.log('hi');",
)
})
test('converts links to text with URL', () => {
@@ -26,7 +27,8 @@ describe('markdownToPlainText', () => {
})
test('handles mixed markdown', () => {
expect(markdownToPlainText('# Hello\n\n**bold** and *italic* with `code`'))
.toBe('Hello\n\nbold and italic with code')
expect(
markdownToPlainText('# Hello\n\n**bold** and *italic* with `code`'),
).toBe('Hello\n\nbold and italic with code')
})
})