Skip to content

Commit f0c5df5

Browse files
committed
fix(tests): remove unnecessary await from expect statements in ptyRead tests
1 parent 5d9d28f commit f0c5df5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/pty-tools.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ describe('PTY Tools', () => {
171171
ask: mock(async () => {}),
172172
}
173173

174-
await expect(ptyRead.execute(args, ctx)).rejects.toThrow("PTY session 'invalid-id' not found")
174+
expect(ptyRead.execute(args, ctx)).rejects.toThrow("PTY session 'invalid-id' not found")
175175
})
176176

177177
it('should throw for invalid regex', async () => {
@@ -185,7 +185,7 @@ describe('PTY Tools', () => {
185185
ask: mock(async () => {}),
186186
}
187187

188-
await expect(ptyRead.execute(args, ctx)).rejects.toThrow(
188+
expect(ptyRead.execute(args, ctx)).rejects.toThrow(
189189
'Potentially dangerous regex pattern rejected'
190190
)
191191
})

0 commit comments

Comments
 (0)