We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d9d28f commit f0c5df5Copy full SHA for f0c5df5
1 file changed
test/pty-tools.test.ts
@@ -171,7 +171,7 @@ describe('PTY Tools', () => {
171
ask: mock(async () => {}),
172
}
173
174
- await expect(ptyRead.execute(args, ctx)).rejects.toThrow("PTY session 'invalid-id' not found")
+ expect(ptyRead.execute(args, ctx)).rejects.toThrow("PTY session 'invalid-id' not found")
175
})
176
177
it('should throw for invalid regex', async () => {
@@ -185,7 +185,7 @@ describe('PTY Tools', () => {
185
186
187
188
- await expect(ptyRead.execute(args, ctx)).rejects.toThrow(
+ expect(ptyRead.execute(args, ctx)).rejects.toThrow(
189
'Potentially dangerous regex pattern rejected'
190
)
191
0 commit comments