diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/socket_tiles.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/socket_tiles.js b/tests/socket_tiles.js new file mode 100644 index 0000000..bf1b9de --- /dev/null +++ b/tests/socket_tiles.js @@ -0,0 +1,9 @@ +// Tests Socket.on('tileUpdate') + +const Socket = require('../socket'); + +main = new Socket(); + +main.on('tileUpdate', (send, source, tiles)=>{ // Should just print a log of any tile updates on the main world + console.log(tiles); +}); |