Add a test file

This commit is contained in:
Jaiwanth 2021-08-03 14:36:21 +05:30
parent 46e2f67f54
commit 4824c93707
5 changed files with 112 additions and 25 deletions

View file

@ -202,8 +202,9 @@ export function mkMembership(opts) {
* @param {Object} opts Values for the message
* @param {string} opts.room The room ID for the event.
* @param {string} opts.user The user ID for the event.
* @param {string} opts.msg Optional. The content.body for the event.
* @param {number} opts.ts The timestamp for the event.
* @param {boolean} opts.event True to make a MatrixEvent.
* @param {string=} opts.msg Optional. The content.body for the event.
* @return {Object|MatrixEvent} The event
*/
export function mkMessage(opts) {