pokemon-showdown/test
Ben Davies 5031794f97 Sockets: fix unit tests (#3281)
* Sockets: fix Sockets.killWorker not disconnecting connections

* Sockets: fix unit tests

- Fix crash when constructing mock sockets in certain cases
- Properly prevent workers from writing to stdout
- Fix race conditions in workers-related tests that were causing false
  positives

* Tests: mock workers now more closely imitate sockets' workers

This helps catch cases where messages are being sent in the wrong order
to the workers, e.g. messages sent to sockets that no longer exist.
2017-02-24 05:38:37 -06:00
..
application Sockets: fix unit tests (#3281) 2017-02-24 05:38:37 -06:00
chat-plugins Sockets: fix unit tests (#3281) 2017-02-24 05:38:37 -06:00
dev-tools/eslint Remove .js extension from requires (#2725) 2016-08-30 00:04:40 -05:00
mocks add mock for battle tests that can reset the RNG 2017-02-22 20:44:20 -05:00
simulator Add various Z-Status Move tests (#3279) 2017-02-23 04:54:04 -06:00
.eslintrc Modify data and mods files to follow style rules 2016-01-01 00:18:00 +01:00
assert.js Refactor BattleEngine 2016-10-22 23:11:26 -05:00
common.js add mock for battle tests that can reset the RNG 2017-02-22 20:44:20 -05:00
main.js add mock for battle tests that can reset the RNG 2017-02-22 20:44:20 -05:00
mocha.opts Implement assert extensions to enhance the test suite 2016-06-15 08:54:18 -05:00