mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-23 00:35:51 +00:00
style: 完成所有文件的lint
This commit is contained in:
@@ -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',
|
||||
)
|
||||
})
|
||||
|
||||
@@ -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')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user