add SocketIO test case

This commit is contained in:
Erik Krogh Kristensen
2020-04-22 21:55:20 +02:00
parent 5a2dcc591c
commit 40822e10b4
2 changed files with 5 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ test_NamespaceNode
| tst.js:68:1:68:35 | io.on(' ... => {}) | socket.io namespace with path '/' |
| tst.js:69:1:69:32 | ns.on(' ... => {}) | socket.io namespace with path '/' |
| tst.js:70:1:74:2 | ns.on(' ... {});\\n}) | socket.io namespace with path '/' |
| tst.js:85:1:85:37 | io.on(' ... , "x")) | socket.io namespace with path '/' |
test_ClientReceiveNode_getASender
| client2.js:4:1:6:2 | sock.on ... y);\\n}) | tst.js:30:1:30:28 | ns.emit ... event') |
| client2.js:4:1:6:2 | sock.on ... y);\\n}) | tst.js:31:1:31:20 | ns.send('a message') |
@@ -171,6 +172,7 @@ test_ServerNode
| tst.js:50:1:67:2 | io.on(' ... t');\\n}) | tst.js:1:12:1:33 | require ... .io')() |
| tst.js:68:1:68:35 | io.on(' ... => {}) | tst.js:1:12:1:33 | require ... .io')() |
| tst.js:80:1:80:10 | obj.server | tst.js:1:12:1:33 | require ... .io')() |
| tst.js:85:1:85:37 | io.on(' ... , "x")) | tst.js:1:12:1:33 | require ... .io')() |
test_ClientSendNode_getAReceiver
| client2.js:14:1:14:32 | sock.em ... there") | tst.js:71:3:71:35 | socket. ... => {}) |
| client2.js:14:1:14:32 | sock.em ... there") | tst.js:72:3:72:46 | socket. ... => {}) |

View File

@@ -80,3 +80,6 @@ var obj = {
obj.server; // SocketIO::ServerNode
obj.serveClient(false); // not a SocketIO::ServerNode
obj.serveClient(false).server; // not a SocketIO::ServerNode
function foo(x,socket) {}
io.on('connect', foo.bind(null, "x"));