Romain Beaumont
8c4406804e
use const and let instead of var
...
see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const and https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let
2015-12-17 11:36:43 +01:00
Romain Beaumont
a999bbdda1
fix an async problem with portal generation, check huge portals work
2015-12-15 00:20:15 +01:00
Romain Beaumont
e792f5d671
fix destroying multiple portal at the same time, add /portal command to create a portal, expose various portal generation function
2015-12-14 22:36:15 +01:00
Romain Beaumont
908054dca1
fix tests
2015-12-14 19:39:53 +01:00
Romain Beaumont
3d6dd9faec
doesn't detect portal if there is air in it, add test to check that
2015-12-14 02:58:00 +01:00
Romain Beaumont
703b42abea
some fixes in findBorder, add more tests
2015-12-14 00:45:08 +01:00
Romain Beaumont
adcd35b985
make portal test more general to test for several portal kinds
2015-12-13 20:07:45 +01:00
Romain Beaumont
539b9c1314
implement portal detection and use it when flint and steel is used
...
currently places cactus instead of nether block because nether block seems to require the multi block change packet
lot of tests are already there, but some more need to be added, it seems some cases don't work (when the portal have edges it seems)
2015-12-12 06:45:39 +01:00
Romain Beaumont
3e8e49bf4c
one onGround missing
2015-12-11 16:56:23 +01:00
Romain Beaumont
addec7252d
fix place block test and improve lot of awaiting in the tests, only send min(3,view) chunks initially
2015-12-11 16:52:48 +01:00
Romain Beaumont
f5884caf1f
fix player.kick (just use player._client.end), add serv.quit(reason), wait for login messages in mineflayer test
2015-12-11 15:33:48 +01:00
Romain Beaumont
72c91c50e0
make tests independent : do beforeEach instead of before to initialize the server/bots
2015-12-11 13:49:03 +01:00
Romain Beaumont
b6b49a5c3c
fix /kill test by fixing mineflayer
2015-12-11 13:28:48 +01:00
Romain Beaumont
ce1ffe9c4f
fix error handling in /kill and disable /kill test until we figure out whether the server should send the despawn packet or not when the entity dies
2015-12-11 04:32:33 +01:00
Romain Beaumont
8776a2baa7
view distance of 1 in the test, fix #158
2015-12-11 01:07:22 +01:00
Romain Beaumont
f3a543dffc
improve assertPosEqual error message, fix #155
2015-12-11 00:46:26 +01:00
Romain Beaumont
865327b482
use require-self for better consistency with external plugins
...
require("flying-squid").someLib instead of require("../someLib")
2015-12-10 01:25:33 +01:00
Romain Beaumont
3ec142d118
add test for /kill
2015-12-09 01:19:18 +01:00
Romain Beaumont
3becd22307
Merge #145
2015-12-07 01:02:42 +01:00
Romain Beaumont
3806c3fd29
add a test to check /xp works
2015-12-07 01:02:21 +01:00
Romain Beaumont
85b11605a8
arrow function don't have this
2015-12-07 00:13:01 +01:00
Romain Beaumont
c5fd043e31
increase test time
2015-12-07 00:09:08 +01:00
Romain Beaumont
974fcafba7
add a digging and placing test
...
the placing test is currently skipped because it doesn't always work (might be better to restart the server and bots at each test)
2015-12-07 00:06:43 +01:00
Romain Beaumont
526a9f1132
await the bot is onGround, and add a test for /setblock
2015-12-06 20:20:13 +01:00
Romain Beaumont
7efb2daea3
rewrite tests using async/await
...
much easier to understand that way
2015-12-06 19:42:44 +01:00
Romain Beaumont
94edf79f97
add more tests for /tp and a test for /deop
2015-12-06 18:54:04 +01:00
Romain Beaumont
ae6d9887fd
fix bug in /tp and add regression tests
2015-12-06 18:31:25 +01:00
Romain Beaumont
b5d22e57f9
improve code with webstorm suggestion + split entities.js into spawn.js and other files
2015-11-28 18:23:26 +01:00
Romain Beaumont
d1c1c9d77f
close the server when the tests end
2015-11-25 20:23:45 +01:00
Romain Beaumont
ddd38e148a
fix settings, cleanup logs ( fix #125 )
2015-11-25 19:49:38 +01:00
Romain Beaumont
fe3afd1ce0
set a different port for the server with mineflayer test
2015-11-25 02:59:09 +01:00
Romain Beaumont
44d721d2a5
add a few tests based on mineflayer
2015-11-25 02:46:32 +01:00
Romain Beaumont
767a3bfba1
fix test
2015-10-26 03:10:16 +01:00
Romain Beaumont
a50642967b
use more es6 arrow function, and directly define the player.f functions instead of defining the function then assigning it
2015-10-26 01:15:21 +01:00
mhsjlw
457f91ff3e
Created test scaffolding
2015-08-24 10:45:51 -04:00