spec/integ/matrix-client-crypto.spec.js
/**
 * Set an expectation that ali will upload device keys and a number of one-time keys;
 * then flush the http requests.
 *
 * <p>Updates <tt>aliDeviceKeys</tt>
 *
 * @return {promise} completes once the http requests have completed.
 */
Set an expectation that ali will upload device keys and a number of one-time keys;
then flush the http requests.



@return {promise} completes once the http requests have completed.
Set an expectation that ali will upload device keys and a number of one - time keys ; then flush the http requests . @return { promise } completes once the http requests have completed .
function expectAliKeyUpload() {
    return expectKeyUpload(aliDeviceId, aliHttpBackend).then(function(content) {
        aliDeviceKeys = content.device_keys;
    });
}
function expectAliKeyUpload ( ) { return expectKeyUpload ( aliDeviceId , aliHttpBackend ) . then ( function ( content ) { aliDeviceKeys = content . device_keys ; } ) ; }
Set an expectation that ali will upload device keys and a number of one-time keys;
 then flush the http requests.
Set an expectation that ali will upload device keys and a number of one - time keys ; then flush the http requests .