Skip to content

Commit 2416539

Browse files
committed
Assert we get the correct error
1 parent 9886c74 commit 2416539

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ test("can set frameMax", async () => {
709709
})
710710

711711
test("can't set too small frameMax", () => {
712-
expect(() => getNewClient({ frameMax: 16 })).toThrow()
712+
expect(() => getNewClient({ frameMax: 16 })).toThrow(/frame_?max/i)
713713
})
714714

715715
test("can handle frames split over socket reads", async () => {

0 commit comments

Comments
 (0)