function aliSendsFirstMessage() {
    return Promise.all([
        sendMessage(aliTestClient.client),
        expectAliQueryKeys()
            .then(expectAliClaimKeys)
            .then(expectAliSendMessageRequest),
    ]).spread(function(_, ciphertext) {
        return ciphertext;
    });
}
function aliSendsFirstMessage() {
    return Promise.all([
        sendMessage(aliTestClient.client),
        expectAliQueryKeys()
            .then(expectAliClaimKeys)
            .then(expectAliSendMessageRequest),
    ]).spread(function(_, ciphertext) {
        return ciphertext;
    });
}
function aliSendsFirstMessage ( ) { return Promise . all ( [ sendMessage ( aliTestClient . client ) , expectAliQueryKeys ( ) . then ( expectAliClaimKeys ) . then ( expectAliSendMessageRequest ) , ] ) . spread ( function ( _ , ciphertext ) { return ciphertext ; } ) ; }
Ali sends a message, 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 first claiming e2e keys . Set the expectations and check the results .