-
Notifications
You must be signed in to change notification settings - Fork 7
chore(release): v2.6.1 #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| const assert = require('assert'); | ||
| const { ClaudeCodeWebServer } = require('../src/server'); | ||
|
|
||
| describe('Server Aliases', function() { | ||
| it('should set aliases from options', function() { | ||
| const server = new ClaudeCodeWebServer({ | ||
| claudeAlias: 'Buddy', | ||
| codexAlias: 'Robo', | ||
| noAuth: true // avoid auth middleware complexity | ||
|
Comment on lines
+5
to
+9
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [P1] Tear down ClaudeCodeWebServer in tests to prevent hanging suite Both alias tests instantiate Useful? React with 👍 / 👎. |
||
| }); | ||
|
|
||
| assert.strictEqual(server.aliases.claude, 'Buddy'); | ||
| assert.strictEqual(server.aliases.codex, 'Robo'); | ||
| }); | ||
|
|
||
| it('should default aliases when not provided', function() { | ||
| const server = new ClaudeCodeWebServer({ noAuth: true }); | ||
| assert.ok(server.aliases.claude && server.aliases.claude.length > 0); | ||
| assert.ok(server.aliases.codex && server.aliases.codex.length > 0); | ||
| }); | ||
| }); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code block is not properly closed. There's an extra closing triple backtick that creates malformed markdown structure.