aboutsummaryrefslogtreecommitdiff
path: root/tests/socket_cursor.js
diff options
context:
space:
mode:
authorHolden Rohrer <holden.rohrer@gmail.com>2019-12-18 16:35:13 -0500
committerHolden Rohrer <holden.rohrer@gmail.com>2019-12-18 16:35:13 -0500
commitfae8f6b3bbb1fd18cd07c26673d454a8136c093f (patch)
tree564002acdf9cb737222d77831a8f5bf618ddb961 /tests/socket_cursor.js
parent27edad92c3af494c24b0bddb052a5182e974027e (diff)
tested and fixed socket.fetch/cursor
Diffstat (limited to 'tests/socket_cursor.js')
-rw-r--r--tests/socket_cursor.js8
1 files changed, 8 insertions, 0 deletions
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)});