spec/integ/matrix-client-crypto.spec.js
function aliSendsMessage() {
    return Promise.all([
        sendMessage(aliTestClient.client),
        expectAliSendMessageRequest(),
    ]).spread(function(_, ciphertext) {
        return ciphertext;
    });
}
function aliSendsMessage() {
    return Promise.all([
        sendMessage(aliTestClient.client),
        expectAliSendMessageRequest(),
    ]).spread(function(_, ciphertext) {
        return ciphertext;
    });
}
function aliSendsMessage ( ) { return Promise . all ( [ sendMessage ( aliTestClient . client ) , expectAliSendMessageRequest ( ) , ] ) . spread ( function ( _ , ciphertext ) { return ciphertext ; } ) ; }
Ali sends a message without first claiming e2e keys. Set the expectations
and check the results.

@return {promise} which resolves to the ciphertext for Bob's device.
Ali sends a message without first claiming e2e keys . Set the expectations and check the results .