diff options
Diffstat (limited to 'tests/socket_fetch.js')
-rw-r--r-- | tests/socket_fetch.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/socket_fetch.js b/tests/socket_fetch.js new file mode 100644 index 0000000..b558f89 --- /dev/null +++ b/tests/socket_fetch.js @@ -0,0 +1,8 @@ +// Tests Socket.fetch and Socket.on('fetch') +const Socket = require('../socket'); + +let world = new Socket(); + +world.on('open', () => {world.fetch([[10,10,10,10]])}); + +world.on('fetch', (tiles) => {console.log(tiles);}) |