1
0
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:
David Baker
2017-01-12 12:51:22 +00:00
parent 0a11404be2
commit 31af4bbeb5

View File

@@ -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);