Skip to content

Commit da918e5

Browse files
committed
fix: correct stale assertions in model-context, plugin-cli, and sidebar tests
1 parent b990fb6 commit da918e5

4 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div align="center">
22

3-
<img src="assets/crewcoder-logo.png" alt="CrewCoder" width="420" />
3+
<img src="src/renderer/src/assets/crewcode-dark-version-logo.png" alt="CrewCoder" width="420" />
44

55
> **CrewCode is the control center for multi-agent software development.**
66
>

‎src/main/agents/model-context.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ describe('contextWindowFor', () => {
4848
expect(contextWindowFor('claude-opus-4-8')).toBe(500_000)
4949
expect(contextWindowFor('Claude Opus 4.8 (latest)')).toBe(500_000)
5050
expect(contextWindowFor('anthropic/claude-opus-4.8')).toBe(500_000)
51-
expect(contextWindowFor('claude-sonnet-4-6')).toBeUndefined()
51+
expect(contextWindowFor('claude-sonnet-4-6')).toBe(500_000)
5252
})
5353

5454
it('does not invent a window for unknown models', () => {

‎src/main/crewcode-plugin-cli.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe('crewcode plugin CLI', () => {
2020
expect(result.id).toBe('my-panel')
2121
expect(manifest.id).toBe('my-panel')
2222
expect(manifest.name).toBe('My Panel')
23-
expect(manifest.$schema).toBe('https://crewcode.cortex-ai.icu/schemas/crewcode.plugin.schema.json')
23+
expect(manifest.$schema).toBe('https://crewcode-plugins.cortex-ai.icu/schemas/crewcode.plugin.schema.json')
2424
expect(existsSync(join(result.path, 'panel.html'))).toBe(true)
2525
})
2626

‎src/renderer/src/components/workspaces/workspace-sidebar-metadata.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ describe('workspace sidebar metadata', () => {
2424
})
2525

2626
it('adds the trailing hairline to every shared workspace section', () => {
27-
expect(drawer).toContain('className="ws-sec ws-sec-btn ws-sec-rule"')
27+
// The section button composes its class from a template literal (tone is
28+
// appended), so match the rule classes rather than a fixed attribute string.
29+
expect(drawer).toContain('ws-sec ws-sec-btn ws-sec-rule')
2830
expect(drawer).not.toContain('rule?:')
2931
})
3032
})

0 commit comments

Comments
 (0)