refactor(core): canonicalize pty service (#32182)
This commit is contained in:
@@ -24,4 +24,9 @@ describe("Pty.Info", () => {
|
||||
test("rejects a negative pid", () => {
|
||||
expect(() => Schema.decodeUnknownSync(Pty.Info)(sample(-1))).toThrow()
|
||||
})
|
||||
|
||||
test("accepts an exit code for retained exited sessions", () => {
|
||||
const info = Schema.decodeUnknownSync(Pty.Info)({ ...sample(48012), status: "exited", exitCode: 4 })
|
||||
expect(info.exitCode).toBe(4)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user