tests: Support injecting hook functions during pad load

This commit is contained in:
Richard Hansen 2021-10-28 17:36:41 -04:00
parent c8e544ec8d
commit e28c9ffc97
3 changed files with 28 additions and 1 deletions

View file

@ -47,6 +47,9 @@
hook. Plugins should use this instead of the `clientVars` global variable.
* New `userJoin` server-side hook.
* The `userLeave` server-side hook has a new `socket` context property.
* The `helper.aNewPad()` function (accessible to client-side tests) now
accepts hook functions to inject when opening a pad. This can be used to
test any new client-side hooks your plugin provides.
# 1.8.14