From fae8f6b3bbb1fd18cd07c26673d454a8136c093f Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Wed, 18 Dec 2019 16:35:13 -0500 Subject: tested and fixed socket.fetch/cursor --- tests/socket_cursor.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/socket_cursor.js (limited to 'tests/socket_cursor.js') diff --git a/tests/socket_cursor.js b/tests/socket_cursor.js new file mode 100644 index 0000000..dc0ca7f --- /dev/null +++ b/tests/socket_cursor.js @@ -0,0 +1,8 @@ +// Tests Socket.cursor and Socket.on('cursor') + +socket = require('../socket'); + +world = new socket.Socket(); + +world.on('open', ()=>{world.cursor([22,23])}); +world.on('cursor', (locs, send)=>{console.log(locs,send)}); -- cgit