import { expect } from 'chai';
import { getInitialOnboardingLocation } from '../../src/app/getInitialOnboardingLocation';
describe('UNIT: getInitialOnboardingLocation', function () {
    var createTestWalletState = function (kind, wallet) { return ({ kind: kind, wallet: wallet }); };
    it('None', function () {
        var walletState = createTestWalletState('None');
        expect(getInitialOnboardingLocation(walletState)).to.eq('/selector');
    });
    it('Future', function () {
        var walletState = createTestWalletState('Future');
        expect(getInitialOnboardingLocation(walletState)).to.eq('/create');
    });
    it('Deploying', function () {
        var walletState = createTestWalletState('Deploying');
        expect(getInitialOnboardingLocation(walletState)).to.eq('/create');
    });
    it('Connecting', function () {
        var expectedEnsName = 'example.mylogin.eth';
        var walletState = createTestWalletState('Connecting', { name: expectedEnsName });
        expect(getInitialOnboardingLocation(walletState)).to.deep.eq({
            pathname: '/connectFlow/emoji',
            state: { name: expectedEnsName },
        });
    });
    it('Deployed', function () {
        var walletState = createTestWalletState('Deployed');
        expect(function () { return getInitialOnboardingLocation(walletState); }).to.throw('Unexpected wallet state: Deployed');
    });
});
//# sourceMappingURL=getInitialOnboardingLocation.unit.test.js.map