test(test-runtime): cover the command fail-loud stub

This commit is contained in:
imccyu
2026-07-29 01:54:02 +08:00
parent 15c1976472
commit a559c524f5

View File

@@ -442,6 +442,7 @@ describe('fixture session face', () => {
const bare = runtime.sessions.behavior('s1')
expect(() => bare.prompt()).toThrow(/prompt is not stubbed/)
expect(() => bare.cancel()).toThrow(/cancel is not stubbed/)
expect(() => bare.command()).toThrow(/command is not stubbed/)
expect(() => bare.loadOlder()).toThrow(/loadOlder is not stubbed/)
await runtime.dispose()
})