Skip to content

Commit 0f19292

Browse files
committed
style(tests): drop type assertions made unnecessary by eslint 10 toolchain (#497)
Claude-Session: https://claude.ai/code/session_012jwDZSEKBhuQmhQuGujHC1
1 parent ace3f86 commit 0f19292

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/unit/config/options-terminal-shift-enter.vitest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ describe('options.terminal.shiftEnterNewline', () => {
3131
...cfg,
3232
options: { ...cfg.options, terminal: { shiftEnterNewline: 'yes' } }
3333
}
34-
const result = validateConfigSchema(bad as never)
34+
const result = validateConfigSchema(bad)
3535
expect(result.ok).toBe(false)
3636
})
3737

tests/unit/connection-handler/terminal-injection.vitest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ describe('buildTempConfig - terminal slice', () => {
5757
it('omits the terminal key when options.terminal is absent', () => {
5858
// eslint-disable-next-line @typescript-eslint/naming-convention, sonarjs/no-unused-vars -- intentional discard destructure
5959
const { terminal: _terminal, ...optionsWithout } = defaultConfig.options
60-
const cfg = { ...defaultConfig, options: optionsWithout } as Config
60+
const cfg = { ...defaultConfig, options: optionsWithout }
6161
const tempConfig = buildTempConfig(makeReq(), cfg)
6262
expect('terminal' in tempConfig).toBe(false)
6363
})

0 commit comments

Comments
 (0)