Skip to content

Commit

Permalink
chore(tests): add a test for noArgs in a namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
ZachHaber authored and darrachequesne committed Jan 8, 2024
1 parent 2c0a81c commit d9fb2f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/socket.io.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,9 @@ describe("server", () => {
expectType<ToEmit<ServerToClientEventsNoAck, "noArgs">>(
sio.emit<"noArgs">
);
expectType<ToEmit<ServerToClientEventsNoAck, "noArgs">>(
nio.emit<"noArgs">
);
expectType<ToEmit<ServerToClientEventsNoAck, "helloFromServer">>(
// These errors will dissapear once the TS version is updated from 4.7.4
// the TSD instance is using a newer version of TS than the workspace version
Expand Down

0 comments on commit d9fb2f6

Please sign in to comment.