You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-29 16:43:09 +03:00
Fix jsdoc errors in spec/
This commit is contained in:
@@ -61,7 +61,7 @@ function TestClient(userId, deviceId, accessToken) {
|
|||||||
/**
|
/**
|
||||||
* start the client, and wait for it to initialise.
|
* start the client, and wait for it to initialise.
|
||||||
*
|
*
|
||||||
* @param {object?} deviceQueryResponse the list of our existing devices to return from
|
* @param {object?} existingDevices the list of our existing devices to return from
|
||||||
* the /query request. Defaults to empty device list
|
* the /query request. Defaults to empty device list
|
||||||
* @return {Promise}
|
* @return {Promise}
|
||||||
*/
|
*/
|
||||||
@@ -313,6 +313,9 @@ describe("megolm", function() {
|
|||||||
/**
|
/**
|
||||||
* Get the device keys for testOlmAccount in a format suitable for a
|
* Get the device keys for testOlmAccount in a format suitable for a
|
||||||
* response to /keys/query
|
* response to /keys/query
|
||||||
|
*
|
||||||
|
* @param {string} userId The user ID to query for
|
||||||
|
* @returns {Object} The fake query response
|
||||||
*/
|
*/
|
||||||
function getTestKeysQueryResponse(userId) {
|
function getTestKeysQueryResponse(userId) {
|
||||||
var testE2eKeys = JSON.parse(testOlmAccount.identity_keys());
|
var testE2eKeys = JSON.parse(testOlmAccount.identity_keys());
|
||||||
@@ -346,6 +349,9 @@ describe("megolm", function() {
|
|||||||
/**
|
/**
|
||||||
* Get a one-time key for testOlmAccount in a format suitable for a
|
* Get a one-time key for testOlmAccount in a format suitable for a
|
||||||
* response to /keys/claim
|
* response to /keys/claim
|
||||||
|
|
||||||
|
* @param {string} userId The user ID to query for
|
||||||
|
* @returns {Object} The fake key claim response
|
||||||
*/
|
*/
|
||||||
function getTestKeysClaimResponse(userId) {
|
function getTestKeysClaimResponse(userId) {
|
||||||
testOlmAccount.generate_one_time_keys(1);
|
testOlmAccount.generate_one_time_keys(1);
|
||||||
|
|||||||
Reference in New Issue
Block a user