Skip to content

Commit d9fb2f6

Browse files
ZachHaberdarrachequesne
authored andcommitted
chore(tests): add a test for noArgs in a namespace
1 parent 2c0a81c commit d9fb2f6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: test/socket.io.test-d.ts

+3
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,9 @@ describe("server", () => {
442442
expectType<ToEmit<ServerToClientEventsNoAck, "noArgs">>(
443443
sio.emit<"noArgs">
444444
);
445+
expectType<ToEmit<ServerToClientEventsNoAck, "noArgs">>(
446+
nio.emit<"noArgs">
447+
);
445448
expectType<ToEmit<ServerToClientEventsNoAck, "helloFromServer">>(
446449
// These errors will dissapear once the TS version is updated from 4.7.4
447450
// the TSD instance is using a newer version of TS than the workspace version

0 commit comments

Comments
 (0)