spot-client/src/common/app-state/paired-remotes/pairedRemotes.test.js
/**
     * Test helper to check if the redux state contains the expected number
     * of permanent and temporary Spot-Remotes.
     *
     * @param {number} permanentRemotes - The expected number of permanently
     * paired Spot-Remotes.
     * @param {number} temporaryRemotes - The expected number of temporarily
     * paired Spot-Remotes.
     * @private
     * @returns {void}
     */
Test helper to check if the redux state contains the expected number
of permanent and temporary Spot-Remotes.

@param {number} permanentRemotes - The expected number of permanently
paired Spot-Remotes.
@param {number} temporaryRemotes - The expected number of temporarily
paired Spot-Remotes.
@private
@returns {void}
Test helper to check if the redux state contains the expected number of permanent and temporary Spot - Remotes . @param { number } permanentRemotes - The expected number of permanently paired Spot - Remotes . @param { number } temporaryRemotes - The expected number of temporarily paired Spot - Remotes . @private @returns { void }
function validateRemoteCounts(permanentRemotes, temporaryRemotes) {
        const state = getState();
        expect(selectors.getPermanentPairedRemotesCount(state))
            .toEqual(permanentRemotes);
        expect(selectors.getPairedRemotesCount(state))
            .toEqual(permanentRemotes + temporaryRemotes);
    }
function validateRemoteCounts ( permanentRemotes , temporaryRemotes ) { const state = getState ( ) ; expect ( selectors . getPermanentPairedRemotesCount ( state ) ) . toEqual ( permanentRemotes ) ; expect ( selectors . getPairedRemotesCount ( state ) ) . toEqual ( permanentRemotes + temporaryRemotes ) ; }
Test helper to check if the redux state contains the expected number
 of permanent and temporary Spot-Remotes.
Test helper to check if the redux state contains the expected number of permanent and temporary Spot - Remotes .