17 Commits

Author SHA1 Message Date
Lam Wei Li
879e8c7646
refactor(test): forward-compatible with tap v15 when callback is removed from beforeEach and afterEach
in tap 15.0.0, libtap was added:
https://github.com/tapjs/libtap/compare/v0.3.0...v1.0.0#diff-e41924228a867ab0a0d8689f84ae6d826da70a0d65fc59ae2c69539035c4ef6aL905-L915
2022-07-25 22:37:42 +08:00
Lam Wei Li
5f617cc94b
refactor(test): added callback for beforeEach() and afterEach() for tap v14 downgrade 2022-07-25 22:37:32 +08:00
Zachary Haber
cad9555948
style: run prettier:fix 2022-06-23 01:00:07 +08:00
Tobias Speicher
aeff6dc882
refactor: replace deprecated String.prototype.substr()
.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated

Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
2022-03-27 01:47:47 +01:00
Lam Wei Li
65fe707350
chore(test): improve test coverage for multiprocessAppender
appenders/multiprocess.js - Line 121 - debug('connection error', e);
appenders/multiprocess.js - Line 122 - canWrite = false;
appenders/multiprocess.js - Line 123 - emptyBuffer();
2022-03-06 21:47:27 +08:00
Lam Wei Li
d3872208c9
refactor(test): tap v15 - replaced deprecated synonyms, separated tap.has() and tap.match()
https://github.com/tapjs/node-tap/pull/649/files
6d9f5798a9/lib/synonyms.js
2c15bd8779
2022-01-26 20:15:15 +08:00
Lam Wei Li
c7c72cc879
refactor(test): tap v15 - removed callback from beforeEach() and afterEach()
c363aebf69
2022-01-26 20:12:53 +08:00
Nico Jansen
ae4e440813 test(multiprogress): add e2e test
Prevent regression for the multiprocess appender.
2022-01-25 13:42:02 +01:00
Gareth Jones
66fe30e9f4 chore: oh shit I changed the eslint rules 2019-08-01 16:57:32 +10:00
Martin Heidegger
a06e2cc83c chore: updated dependencies (including eslint) 2019-02-20 23:07:23 +09:00
LoneRifle
29c92211f2 fix(#789): use flatted in place of CircularJSON
CircularJSON is now deprecated, so replace it with its successor
and use it in the sole location where we used CircularJSON, ie
in the LoggingEvent serialization/deserialization functions

* npm - install flatted, remove circular-json
* LoggingEvent - use flatted for serialization/deserialization
* tests - acknowledge that flatted (and circular-json) should not
  parse anything other than their respective serialized payloads
  and use flatted when parsing/stringifying test data
2018-11-04 15:32:28 +08:00
Gareth Jones
a0749b5d01 chore: resolved conflicts manually 2018-05-30 08:26:32 +10:00
Nico Jansen
5024badbe7 fix(#713): handle unexpected hangups in multiprocess appender
Handle the `'error'` event on client sockets of worker logger.
2018-05-16 06:52:01 +02:00
Gareth Jones
8f7fde9da0 fix(test): sandboxed-module -> log4js-node version 2018-02-01 07:56:49 +11:00
Gareth Jones
906a77403d chore(lint): added linting to test files 2017-11-14 08:45:22 +11:00
Gareth Jones
514fb9c771 fix(test): got multiprocess tests working 2017-02-27 08:25:11 +11:00
Gareth Jones
074c04eea4 fix(test): moved multiprocess test to tap 2017-01-02 20:12:39 +11:00